接入google+登录SDK提示google-services.json is missing
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json
免费下载资源
·
接入google+登录SDK时下载官方的demo,然后一堆问题,于是把该安装的最新的库都安装了。
但仍然有如下错误。
Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.
Error:Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
C:\Users\Administrator\Downloads\google-services-master\android\signin\app\src\debug\google-services.json
C:\Users\Administrator\Downloads\google-services-master\android\signin\app\google-services.json
Information:BUILD FAILED
Information:Total time: 1.244 secs
Information:1 error
Information:2 warnings
Information:See complete output in console
也就是说找不到这个文件 File google-services.json is missing。
这种问题可不好解决,鬼知道这个google-services.json是个什么鬼。
在Stack Overflow搜到一哥们的一句话。
You should delete a line apply plugin: ‘com.google.gms.google-services’
because “com.android.application” package already has same package.
看了一下build.gradle文件确实有如下两句:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
也就是说com.android.application已经包含com.google.gms.google-services这个包了。因为重复引入所以找不到吧。(MD为什么不提示重复而提示找不到?)
GitHub 加速计划 / js / json
41.72 K
6.61 K
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:1 个月前 )
960b763e
4 个月前
8c391e04
6 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)