mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
9064bc0792
- `CoreAndroid.java` referenced `OnBackInvokedCallback` directly (including lambda generation), which can trigger class resolution on runtimes older than API 33, where the class is not available. This was introduced in PR https://github.com/apache/cordova-android/pull/1831 - Replaced `OnBackInvokedCallback` with AndroidX `OnBackPressedCallback` - Fixes error message: `java.lang.Class<org.apache.cordova.CoreAndroid$$ExternalSyntheticLambda0>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback;` on older Android versions --------- Generated-By: GPT-5.3-Codex, GitHub Copilot Chat Co-authored-by: Norman Breau <norman@breautek.com>