Version Conflict Updating to Play-Services 9.4.0 Android Studio 2.2

Version conflict updating to play-services 9.4.0 Android studio 2.2

You need to put the apply plugin: 'com.google.gms.google-services' line below your dependencies block - this allows the plugin to determine what version of Play services you are using.

Error: fix the version conflict (google-services plugin)

I think you change

compile 'com.google.firebase:firebase-messaging:11.0.4'

Version conflict (google-services plugin)

Update the google-service plugin to 'com.google.gms:google-services:3.3.0'

However, its always better to have same version among the same library file to prevent any project sync crash.

Example,

implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.google.firebase:firebase-ads:15.0.2'
implementation 'com.google.android.gms:play-services-auth:15.0.2'
implementation 'com.google.android.gms:play-services-plus:15.0.2'

Error to build when update gradle dependency 9.4.0 to 9.6.1

You're mixing different versions of Firebase and Google Play services. Don't.

ext.googlePlayVersion = "9.6.1"
compile "com.google.firebase:firebase-ads:$googlePlayVersion"
compile "com.google.firebase:firebase-database:$googlePlayVersion"
compile "com.google.android.gms:play-services-ads:$googlePlayVersion"
compile "com.google.android.gms:play-services:$googlePlayVersion"
compile "com.google.android.gms:play-services-gcm:$googlePlayVersion"
compile "com.google.android.gms:play-services-analytics:$googlePlayVersion"
compile "com.google.android.gms:play-services-location:$googlePlayVersion"

Note: Double quotes are mandatory otherwise the variable will be taken literally.


Make sure you're using latest Google services plugin, as of September 26 it's 3.0.0. Check your project build.gradle.

dependencies {
classpath 'com.google.gms:google-services:3.0.0'
}

Please fix the version conflict either by updating the version of the google-services plugin or updati

 compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'com.google.android.gms:play-services-auth:10.0.1'

make google services using the same version(all 9.4.0 or all 10.0.1)

Version conflict updating to play-services 9.4.0 Android studio 2.2

You need to put the apply plugin: 'com.google.gms.google-services' line below your dependencies block - this allows the plugin to determine what version of Play services you are using.

Google Play Service version conflict for Firebase 11.0.2 libraries

Update your google service plugin to 3.1.0

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
}
}


Related Topics



Leave a reply



Submit