Could not find method compile() for arguments Gradle

后端 未结 8 946
一整个雨季
一整个雨季 2020-12-02 21:29

Looked around for this solution for much too long now, and I\'m not sure if I missed it or just misstyped something, but my Gradle script will not compile. I am migrating to

8条回答
  •  甜味超标
    2020-12-02 22:14

    Hope Below steps will help

    Add the dependency to your project-level build.gradle:

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

    Add the plugin to your app-level build.gradle:

    apply plugin: 'com.google.gms.google-services'
    

    app-level build.gradle:

    dependencies {
            compile 'com.google.android.gms:play-services-auth:9.8.0'
    }
    

提交回复
热议问题