相关疑难解决方法(0)

错误"模块根文件夹中缺少文件google-services.json.没有它,Google Services插件无法正常运行"

我将我的项目更新为最新的Play服务classpath 'com.google.gms:google-services:1.5.0-beta2'.我也在app.gradle文件中使用最新版本的playservices:

compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
Run Code Online (Sandbox Code Playgroud)

但是当我编译时,Gradle会抛出异常,如下所示

Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.
Run Code Online (Sandbox Code Playgroud)

android google-play-services android-gradle-plugin

147
推荐指数
9
解决办法
25万
查看次数