【发布时间】:2016-04-27 22:39:39
【问题描述】:
我尝试在我的 android 应用程序中使用 google 登录,我阅读了页面 https://developers.google.com/identity/sign-in/android/start-integrating 并完成了所有步骤,现在我将我的 google-services.json 放在我的应用程序文件夹中,并在下载 google-services 后。 json,我愿意:
mv Dowloads/google-services.json AndroidStudioProjects/MyApplication/app/
所以,当我这样做的时候:
ls AndroidStudioProjects/MyApplication/app/
app.iml build build.gradle google-services.json libs proguard-rules.pro src
我的文件 google-services.json 似乎在好地方,但 gradle 控制台显示错误:
* 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.
我读了Error "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it",但这不是我的问题,因为我的文件在好地方。
ps : 抱歉我的英语不好;p
【问题讨论】:
标签: android json google-maps gradle