old: compile 'com.google.android.gms:play-services-appindexing:9.2.1'
new compile 'com.google.android.gms:play-services-appindexing:9.4.0'
Error:Execution failed for task ':app:processDebugGoogleServices'.> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.2.1.
apply plugin: 'com.google.gms.google-services'
and I have
classpath 'com.google.gms:google-services:3.0.0'
This message (and any associated files) may contain VelociKey confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by sending a reply e-mail and delete this message. Thank you for your cooperation. --
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/d80efca7-f5b1-4d45-b98d-b3443d774042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
apply plugin: 'com.android.application'
android {compileSdkVersion 24
buildToolsVersion "24.0.1"defaultConfig {
applicationId "com.velocikey.android.todoapp"
minSdkVersion 23targetSdkVersion 24versionCode 1versionName "1.0"testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"}
buildTypes {release {minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'signingConfig signingConfigs.debug
}}}dependencies {compile fileTree(dir: 'libs', include: ['*.jar'])androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'})
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'compile 'com.android.support:recyclerview-v7:24.1.1'compile 'com.android.support:cardview-v7:24.1.1'
// Design helperscompile 'com.android.support:design:24.1.1'compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
// Firebase versionscompile 'com.firebaseui:firebase-ui-database:0.4.3'compile 'com.google.firebase:firebase-core:9.2.1'compile 'com.google.firebase:firebase-auth:9.2.1'compile 'com.google.firebase:firebase-database:9.2.1'compile 'com.google.android.gms:play-services-appindexing:9.2.1'// error if using compile 'com.google.android.gms:play-services-appindexing:9.4.0'}apply plugin: 'com.google.gms.google-services'
// note: no problem if the above line is omitted and appindexing 9.4.0 is selected
Ah ok I think here's the issue. So the plugin decides what version of gms/Firebase you're using by reading your dependencies block, but it stops at the first one which is 9.2.1 in this case. But then you're adding app indexing 9.4.0, and mixing versions can product a conflict. Try updating all of the 9.2.1 dependencies to 9.4.0, and update the FirebaseUI dependency to 0.4.4 to match. I think that'll make it all work.
And yes, I agree, that's a lot of version numbers to keep track of 😉
- Sam
This message (and any associated files) may contain VelociKey confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by sending a reply e-mail and delete this message. Thank you for your cooperation. --
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5f3b6a35-45d3-427c-a457-9ad5f6beb001%40googlegroups.com.
compile 'com.google.android.gms:play-services-appindexing:9.2.1'
compile 'com.firebaseui:firebase-ui-database:0.4.3'compile 'com.google.firebase:firebase-core:9.2.1'
compile 'com.google.firebase:firebase-auth:9.2.1'
compile 'com.google.firebase:firebase-database:9.2.1'e
Glad that worked! I'm pretty sure Android Studio is just looking for 'com.google.android.gms' when trying to tell you what's out of date.
For now the latest version number of the play services libraries is always the same as the latest version of the Firebase libraries, and you should always try to keep them in sync.
- Sam
This message (and any associated files) may contain VelociKey confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by sending a reply e-mail and delete this message. Thank you for your cooperation. --
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/27af0c79-8298-439e-835f-c6c9655728a2%40googlegroups.com.
Also I flagged this issue on the Android Studio bug tracker a little while back if you'd like to follow along:
https://code.google.com/p/android/issues/detail?id=215384
- Sam