Manuel Beck 9064bc0792 fix(android): use AndroidX OnBackPressedCallback instead of OnBackInvokedCallback (#1903)
- `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>
2026-03-13 19:43:15 +01:00
2026-02-20 11:10:51 +09:00
2026-02-20 11:10:51 +09:00
2020-04-15 12:40:59 +09:00

Cordova Android

npm - Latest

GitHub GitHub - Node Workflow GitHub - Release Audit Workflow Code Coverage

Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript.

Apache Cordova is a project of The Apache Software Foundation (ASF).

Requirements

Tip

Refer to the official Apache Cordova documentation for details on the requirements and prerequisites for building Cordova-Android applications. These resources outline the necessary tools, supported versions, and platform requirements:

Create a Cordova project

Follow the instructions in the Create your first Cordova app section of Apache Cordova Docs

Updating a Cordova project

When you install a new version of the Cordova CLI that pins a new version of the Cordova-Android platform, you can follow these simple upgrade steps within your project:

cordova platform rm android
cordova platform add android

Debugging in Android Studio

Import project in Android Studio through File > Open and targeting /path/to/your-cdv-project/platforms/android/.

Further reading

Description
No description provided
Readme Apache-2.0 79 MiB
Languages
JavaScript 51.7%
Java 43.4%
HTML 4.1%
CSS 0.8%