flutter_easy_permission icon indicating copy to clipboard operation
flutter_easy_permission copied to clipboard

Crash on Flutter 3.22.0

Open unger1984 opened this issue 9 months ago • 0 comments

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;`

unger1984 avatar May 16 '24 06:05 unger1984