The `cordova-androidx-build` plugin (current stable version 1.0.4) automatically migrates Cordova project code between Android Support Libraries and AndroidX libraries during the build process. This plugin is crucial for maintaining compatibility across different `cordova-android` versions, especially those transitioning to or already using AndroidX (e.g., `cordova-android@9` and newer). A key differentiator is its use of Gradle scripts, enabling it to work reliably on both local development machines and cloud build services like PhoneGap Build, which is not possible with hook-script-based alternatives such as `cordova-plugin-androidx-adapter`. It provides bidirectional migration capabilities, ensuring plugins build correctly whether the target project uses older Support Libraries or the newer AndroidX ecosystem. Release cadence is typically on an as-needed basis to address compatibility issues or updates in the Android build ecosystem.
npm install cordova-androidx-buildNo compatibility data collected yet for this library.
Demonstrates how to install the plugin directly or declare it as a dependency for another Cordova plugin, and then build the Android project.
Remove `cordova-plugin-androidx-adapter` if `cordova-androidx-build` is installed, or vice-versa. Prefer `cordova-androidx-build` for cloud build environments.
Be aware that build logs will show the migration activity during Gradle execution. If you encounter issues, review Gradle output carefully.
Ensure your `cordova-android` platform version is at least 8.x, ideally 9.x or later, for robust AndroidX compatibility.
This plugin is designed to mitigate such issues. If this error persists, ensure all other plugins are AndroidX compatible or that `cordova-androidx-build` is correctly installed and integrated. You may need to manually inspect your project's `AndroidManifest.xml` files for conflicting entries or check individual plugin dependencies.
Ensure your `platforms/android/gradle.properties` file or `build.gradle` defines `compileSdkVersion` and `targetSdkVersion` appropriately for your AndroidX dependencies (e.g., API 28 or higher for many AndroidX features). This plugin helps with package migration, but version targets must still be correct.
No dependency data recorded yet.