android - google-services.json 文件丢失

标签 android json gradle android-gradle-plugin

我放了谷歌服务.json 我的 中的文件/app 模块目录。仍然收到此错误!

FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:processDebugGoogleServices'.
    > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

这个问题有更新的解决方案吗?请任何人帮助我。

最佳答案

同样的事情也发生在我身上。

Remove the google-services.json file from your project .Set up for the API which you want in your project(Maps,FCM,etc).then place your google-services.json file in your root directory.Rebuild and clean.

Hope this will help you.

关于android - google-services.json 文件丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37988664/

相关文章:

java - 处理 Jersey 中的 JSON 解析错误

gradle - Gradle 是否支持为一个编译时依赖项定义不同的存储库?

android - React Native ScrollView 设备方向景观

android - 如何从 Retrofit2 调用 OnResponse 返回 Java 对象

android - 数据库中的数据更改后如何通知内容解析器?

c++ - 协议(protocol) buffer3 和 json

gradle - 如何在用Java编写的自定义插件中配置Gradle TestNGOptions?

android - Gradle:创建一个将参数作为命令行传递的任务

android - Kotlin - Dagger 2 - 组件不是由 Android 中的 Dagger 2 生成的

Android Studio 颠覆选项