nativescript-social-login icon indicating copy to clipboard operation
nativescript-social-login copied to clipboard

googlePlayServicesVersion conflicting

Open exeleon opened this issue 6 years ago • 2 comments

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.+" }

  1. Would you consider updating to version 16.0.1?
  2. Would you consider changing compile to implementation? because compile 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 avatar Nov 16 '18 14:11 exeleon

@exeleon have you found a way to solve this issue?

brndusic avatar Mar 19 '19 22:03 brndusic

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)

Tran9 avatar Jun 27 '19 12:06 Tran9