gpt4 book ai didi

android - 在查看时 Gradle 警告 : Could not find google-services. json

转载 作者:IT老高 更新时间:2023-10-28 23:06:46 24 4
gpt4 key购买 nike

我收到以下警告。如何避免此警告?

Could not find google-services.json while looking in [src/flavor1/debug, src/debug, src/flavor1] Could not find google-services.json while looking in [src/flavor1/release, src/release, src/flavor1] Could not find google-services.json while looking in [src/flavor2/debug, src/debug, src/flavor2] Could not find google-services.json while looking in [src/flavor2/release, src/release, src/flavor2]


我在 app/google-services.json

中添加了两个 client_info
{
"project_info": {
"project_number": "000000000000",
"project_id": "****-*****"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": ...,
"android_client_info": {
"package_name": "flavor1.package.name"
}
},
...
},
{
"client_info": {
"mobilesdk_app_id": ...,
"android_client_info": {
"package_name": "flavor2.package.name"
}
},
...
}
],
"configuration_version": "1"
}

最佳答案

根据我的经验,当您使用与 firebase 相关的任何类型的服务并且您没有将 google-services.json 放入我们使用该服务所需的文件时,就会发生这种情况,

解决方案是您需要从 firebase 控制台获取文件,如果您要在控制台中为所有风格创建单个项目,则需要将文件放入应用级别文件夹中,如果您要创建不同的项目,则需要为多个项目或风格创建多个文件。

关于android - 在查看时 Gradle 警告 : Could not find google-services. json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47565761/

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