找不到与com.google.android.gms匹配的任何版本:play-services:0.0.+

use*_*698 1 eclipse android android-studio

我正在使用Android Studio创建Android应用.这是一个非常简单的应用程序,我正在尝试整合Google+登录.所以,我正在关注https://developers.google.com/+/mobile/android/getting-started#ne​​xt_steps上提供的Google文档 .上述文档是从Eclipse的角度提供的..但我使用的是Android Studio ..所以我陷入'第2步:配置您的Eclipse项目'.我将谷歌播放服务库添加到我的项目中但无法添加"Android私有库".现在如果我清理我的项目,我收到以下错误:

    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
Run Code Online (Sandbox Code Playgroud)

有人可以帮我这个吗?提前致谢

Sco*_*rta 7

问题是你没有指定Play Services库的版本供它查找:没有0.0.

最好的解决方案是撤消您尝试集成库所做的任何更改,然后转到项目结构>您的模块>依赖项>库依赖项.如果您已经通过SDK管理器安装了Google Repository,它应该在该对话框中为您提供Play服务的依赖项,并填写正确的版本号.