flutter_easy_permission
flutter_easy_permission copied to clipboard
Crash on Flutter 3.22.0
After upgrade to flutter ver 3.22.0 the application crash on run.
Use this code:
_easyPermission = FlutterEasyPermission()
..addPermissionCallback(
onGranted: (requestCode, perms, perm) {
debugPrint("Android Authorized: ${perms ?? ''}");
debugPrint("iOS Authorized: ${perms ?? ''}");
},
onDenied: (requestCode, perms, perm, isPermanent) {
if (isPermanent) {
FlutterEasyPermission.showAppSettingsDialog(title: "Storage");
} else {
debugPrint("Android Deny authorization: ${perms ?? ''}");
debugPrint("iOS Deny authorization: ${perms ?? ''}");
}
},
);
FlutterEasyPermission.request(
perms: [Permissions.WRITE_EXTERNAL_STORAGE],
permsGroup: [PermissionGroup.MediaLibrary],
);```
On flutter run - crash with Fatal exception
`java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback;`