当我尝试添加firbase添加firbase sdk

时间:2018-06-19 10:04:53

标签: android firebase android-studio

  

找不到参数的方法classpath()   类型对象上的[com.google.gms:google-services:4.0.0]   org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

您必须将类路径“ com.google.gms:google-services:4.0.0”放入项目级别的build.gradle文件中。

    buildscript { 
            dependencies {
                classpath 'com.google.gms:google-services:4.0.0'
                //otherS
            }
        }