0

So I tried to connect my firebase database to my android studio application.I get this error:

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.0.0.

I changed the version but it still does not work. As you can see I changed the version 16.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.google.android.gms:play-services-location:16.0.0'

    implementation 'com.google.firebase:firebase-database:16.0.4'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

I don't see the problem. I am stuck on this for hours.

Dor
  • 657
  • 1
  • 5
  • 11
  • maybe [this link](https://stackoverflow.com/questions/45500934/error-fix-the-version-conflict-google-services-plugin) can help or also try [this](https://stackoverflow.com/questions/41631113/please-fix-the-version-conflict-either-by-updating-the-version-of-the-google-ser) – CodeRed Sep 13 '19 at 09:53

1 Answers1

0

Make sure You have gms classpath provided in your Project build.gradle, like this:

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