-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if using for target API 28 #1034
Comments
This is caused by Android X compatibility. The I've recently updated some packages for our game engine to work with Android X and developers are having compat. issues with the Is there any plan to release an Android X compatible version of the plugin anytime soon? I'm open to submitting a pull request, the change is quite simple. As Android X is an all or nothing change this will likely break compatibility with other plugins... |
PR #1039 fixes this for me. Please merge it, it is just two lines to check and it just seems to work. |
I tried your MR and it is failing for Ionic 4, with error |
Is JAVA_HOME defined in your environment? https://stackoverflow.com/a/34216263/4306257 |
It fails if project has other plugins with android-support-v4 library:
|
The requirement for all plugins to use Android X is frustrating to deal with. The gradle option The only alternate solution I can see for libraries is to offer 2 versions, one which is Android X compatible and another which is not. Again, this is far from ideal. |
PR #1039 helps me too |
Hello I got this issues if combine this plugin with another plugin that need API 28.
I'm using this preference
Project target.
target=android-28
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.system.library.2=com.google.android.gms:play-services-games:+
cordova.system.library.3=com.google.android.gms:play-services-identity:+
cordova.system.library.4=com.google.android.gms:play-services-auth:+
FAILURE: Build failed with an exception.
Execution failed for task ':app:transformDexWithDexForRelease'.
The text was updated successfully, but these errors were encountered: