我将我的项目更新为最新的 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'
但是当我编译时,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.
最佳答案
您需要从开发者网站获取配置文件,并将其粘贴到您项目的应用级目录中。
更新:
转到
选择您的项目
在左侧菜单中,点击设置>项目设置
在您的应用部分下添加应用或下载 google-services.json 文件。
关于android - 错误 "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33866061/