gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 12:58:08 28 4
gpt4 key购买 nike

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

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com