-
-
Notifications
You must be signed in to change notification settings - Fork 27
Java source code (of Cordova plugins) are not replace with new class mapping #6
Comments
If I add this plugin by registry :
the build fails with a lot of errors caused by the imports.
|
v1.1.0+ of this plugin requires It sounds like there's a problem with your local Cordova project or development environment since this plugin is working fine when installed from the registry for other developers. I suggest you try this:
Here's the console log of doing the above in my environment which leads to a successful build: console output
|
I followed your steps and when I do
|
The plugin is called |
Ohh, yes...my mistake. `CJ002979MC:test gabriela.banica$ cordova plugin add cordova-plugin-androidx-adapter BUILD SUCCESSFUL in 0s
FAILURE: Build failed with an exception.
BUILD FAILED in 4s FAILURE: Build failed with an exception.
BUILD FAILED in 4s |
You have included the Firebase SDK via |
Thanks for your help! |
Hi!
I just found out about the "cordova-plugin-androidx" plugin and this plugin. These 2 plugins should solve my build errors because some of my plugins use Android Support Library and some plugin adds google-play-services witch depends on Support Library. This is the reason for getting duplicate_classes error.
I added this 2 plugins on my project. It seems that "cordova-plugin-androidx" do his job, on gradle.properties I have these 2 lines
android.useAndroidX=true android.enableJetifier=true
.But this plugin does not replace the java source code of cordova plugins with the new class mapping (I tried with version 1.1.0). My project is full of errors caused by the imports.
I looked on older version of "cordova-plugin-androidx-adapter" plugin and I saw that it requires cordova@9 , but the last version (1.1.0) requires cordova@8. My project use cordova@8.
Where should be the problem? Is it true that this last version request cordova@8 or it need cordova@9 as the older version?
The text was updated successfully, but these errors were encountered: