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

前端 未结 3 1323
旧时难觅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

提交回复
热议问题