【问题标题】:google-services.json file already added, but getting an error : File google-services.json is missing from module root foldergoogle-services.json 文件已添加,但出现错误:模块根文件夹中缺少文件 google-services.json
【发布时间】:2016-06-22 12:47:27
【问题描述】:

我尝试配置 android 开发者控制台并下载 google-services.json 文件。现在我将我的 google-services.json 放在我的 app 文件夹中,然后构建项目,但 gradle 控制台显示错误:

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.

请帮帮我。

【问题讨论】:

标签: android json gradle android-gradle-plugin


【解决方案1】:

您需要将 google-services.json 文件添加到项目的 app 文件夹中。 从官方文档中阅读article。 获取您的 google-service.json 文件 here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-01-25
    • 2016-07-27
    • 2016-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多