- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我收到以下警告。如何避免此警告?
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/
我是一名优秀的程序员,十分优秀!