landabaso opened a new issue, #1620: URL: https://github.com/apache/cordova-android/issues/1620
I have upgraded from cordova-android@10 to 12. I am encountering a compatibility error after running my Cordova app on an Android API Level 32 emulator. The app works fine on real devices with older Android versions, but it fails to run on the API Level 32 emulator. The error message indicates a `java.lang.NoClassDefFoundError` with the message `Failed resolution of: Landroid/window/OnBackInvokedCallback`. This error is caused by a `java.lang.ClassNotFoundException` for the class `android.window.OnBackInvokedCallback`. OnBackInvokedCallback was introduced in API level 33, and it seems that cordova-android@12 is making use of it, resulting in a crash on devices with API level lower than 33. I have investigated the issue and set `android:enableOnBackInvokedCallback="false"` in the Android manifest files to disable this feature which did not help. I have spent considerable time trying to identify the specific code that is making the call to OnBackInvokedCallback with no success. I am unsure whether this issue is due to a bug in cordova-android@12 or if there is something else I need to handle differently. I would like to know if anyone else is facing a similar issue and if it is a known bug in cordova-android@12 or if there are any suggestions on how to properly handle this situation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
