我正在使用 Android Studio 创建一个 Android 应用。它是一个非常简单的应用程序,我正在尝试将 Google+ 登录功能集成到其中。因此,我正在关注 https://developers.google.com/+/mobile/android/getting-started#next_steps 提供的 Google 文档。 上面的文档是从 Eclipse 的角度提供的..但是我使用的是 Android Studio..所以我停留在“第 2 步:配置您的 Eclipse 项目”。我将 google play 服务库添加到我的项目中,但无法添加“Android 私有(private)库”。现在,如果我清理我的项目,我会收到以下错误:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find any version that matches com.google.android.gms:play-services:0.0.+.
Required by:
EarlyBirdAppManagerv1:app:unspecified
谁能帮我解决这个问题?提前致谢
最佳答案
问题是您没有指定要查找的 Play 服务库版本:没有 0.0。
最好的解决方案是撤消您为尝试集成库所做的任何更改,然后转到“项目结构”>“您的模块”>“依赖项”>“库依赖项”。如果您已经通过 SDK 管理器安装了 Google 存储库,它应该会在该对话框中为您提供 Play 服务的依赖项,并填写正确的版本号。
关于android - 找不到与 com.google.android.gms :play-services:0. 0.+ 匹配的任何版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25302843/