nativescript-social-login
nativescript-social-login copied to clipboard
googlePlayServicesVersion conflicting
Hi, today I updated NS 5.0 and the build process failed with the following error:
The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[10.2.6,10.2.6]], but resolves to 16.0.1.
Because this line in the include.gradle:
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : '10.2.6'
I am using other plugins like nativescript-plugin-firebase which is using googlePlayServicesVersion = 16.0.1 and my app.gradle is using:
project.ext { googlePlayServicesVersion = "16.0.+" }
- Would you consider updating to version 16.0.1?
- Would you consider changing
compile
toimplementation
? becausecompile
support will be removed at the end of this year.
UPDATE: I found a workaround to this conflict by now. In my app.gradle:
project.ext {
googlePlayServicesVersion = "16.0.+"
}
configurations.all {
resolutionStrategy.force "com.google.android.gms:play-services-auth:$project.googlePlayServicesVersion"
}
@exeleon have you found a way to solve this issue?
I found the solution. Create a file named 'before-plugins.gradle' on App_Ressources/Android and add project.ext.googlePlayServicesVersion = "16.0.+" on this file. (cf. App_Resources/Android/app.gradle line 9-10)