Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict

后端 未结 13 2540
生来不讨喜
生来不讨喜 2021-02-19 01:26

After updating my google play services to rev 28 i\'m getting this error. Im not sure why this is happening as it was working fine before.

here is my build.gradl

13条回答
  •  失恋的感觉
    2021-02-19 01:57

    To resolve this error, go to the Project-->platform..>android-->.gradlefile and modify the line

    buildscript {
        repositories {
                jcenter()
                mavenLocal()
            }
        dependencies {
            classpath 'com.android.tools.build:gradle:+'
            classpath 'com.google.gms:google-services:3.0.0'
        }
    }
    // apply plugin: 'com.google.gms.google-services'
    // class must be used instead of id(string) to be able to apply plugin from non-root gradle file
    apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
    

提交回复
热议问题