草庐IT

android - 错误 "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it"

coder 2023-05-07 原文

我将我的项目更新为最新的 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.

最佳答案

您需要从开发者网站获取配置文件,并将其粘贴到您项目的应用级目录中。

更新:

转到

  1. https://console.firebase.google.com/

  2. 选择您的项目

  3. 在左侧菜单中,点击设置>项目设置

  4. 您的应用部分下添加应用或下载 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/

有关android - 错误 "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it"的更多相关文章

随机推荐