Error “Please fix the version conflict either by updating the version of the google-services”

前端 未结 3 1317
旧时难觅i
旧时难觅i 2020-12-21 09:13

(translated with Google translator) I searched the Internet, everywhere people just change the version in build.gradle. Help me please. I\'m ready to update the gms

相关标签:
3条回答
  • 2020-12-21 09:30

    Change this:

    classpath 'com.google.gms:google-services:3.1.1'
    

    into this:

    classpath 'com.google.gms:google-services:4.0.1'
    

    to avoid the mixing version error.

    Also update the firebase-core dependency into this:

    implementation 'com.google.firebase:firebase-core:16.0.1'
    

    https://firebase.google.com/support/release-notes/android

    0 讨论(0)
  • 2020-12-21 09:36

    Use as follow

    dependencies {
        ...
        implementation 'com.google.firebase:firebase-core:15.0.0'
        ...
    }
    
    0 讨论(0)
  • 2020-12-21 09:44

    You can update versions of google libraries from this https://developers.google.com/android/guides/setup

    0 讨论(0)
提交回复
热议问题