As per this SO thread, I know there are version conflicts, but issue still persists after new versions from Google.
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 10.0.1.
My build.gradle(Module: app)
....
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'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.android.gms:play-services-location:11.0.4'
}
apply plugin: 'com.google.gms.google-services'
What changes are required now?
Initially, the firebase database was pointing to 11.8.0 . after changing all the related jars to 11.0.4 this issue is resolved at SDK level. compile 'com.google.firebase:firebase-database:11.0.4' compile 'com.google.firebase:firebase-messaging:11.0.4'
You must use only one version for all 3 libs
OR only use only 10.0.1 for 3 libs
Please change your project-level
build.gradle
file in which you have to change your dependencies class path ofgoogle-services
orbuild.gradle
path.With
You have to use:
This fixed my problem
as the message says go to: com.google.gms.google-services versions
And copy the last version's number . Mine was less than 3.3.1. Then in project's build.gradle put/change dependencies node as :
Then I synced the project and error went