This plugin helps to build your app with AndroidX library.
npm install cordova-androidx-buildGoogle introduced AndroidX libraries which replaces old Android support libraries.
Since Cordova will introduce AndroidX from cordova-android@9, however your plugin needs to support both with AndroidX and without AndroidX.
This plugin migrates user's project code to AndroidX automatically when your plugin code is build at the time.
If the project does not specify AndroidX, this plugin migrates the user's project code migrates Android Support Library.
Just install this plugin
```
$ cordova plugin add cordova-androidx-build
Or use this plugin as dependency in your plugin.xml
`xml`
...
The purpose of this plugin is to build your plugin code on any environments.
That's why this plugin has two migrates mode:
- If AndroidX is not available:support library
this plugin changes the project code migrates to .
- If AndroidX is available:AndroidX
this plugin changed the project code migrates to .

?cordova-plugin-androidx-adapter migrates your plugin code to AndroidX.AndroidX
This plugin also migrates your plugin code to .
However cordova-plugin-androidx-adapter works on only your PC, because it uses Cordova Hook Script mechanism.cordova-plugin-androidx-adapter
Because of this, not cloud build services, such as PhoneGap Build.
This plugin is written in Gradle script, which works on your PC or cloud build services.
| | cordova-plugin-androidx-adapter | cordova-androidx-build |
|----------------------------------|---------------------------------|---------------------------|
| support library -> AndroidX | :white_check_mark: | :white_check_mark: |support library
| <- AndroidX | :x: | :white_check_mark: |cordova prepare
| work on PC | :white_check_mark: | :white_check_mark: |
| work on cloud services | :x: | :white_check_mark: |
| when execute the process | after | gradle sync |cordova hook script` | gradle |
| mechanism |