Can't add gms play services 9.0.1, google-services plugin wants 9.0.0

前端 未结 3 1554
梦毁少年i
梦毁少年i 2021-02-18 18:08

I have this in my top-level build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath \'com.google.gms:google-s         


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-02-18 18:49

    Check the version of google services that you have in your root level build.gradle. This should be 3.0.0 or higher:

    buildscript {
        ext.kotlin_version = '1.0.2'
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.1.0'
            classpath 'com.google.gms:google-services:3.0.0'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        }
    }
    

提交回复
热议问题