繁体   English   中英

错误:(25,13)无法解决:com.google.android.gms:play-services-auth:9.8.0

[英]Error:(25, 13) Failed to resolve: com.google.android.gms:play-services-auth:9.8.0

我正在尝试使用Google的功能来创建GMail登录系统,但是当我尝试同步项目时出现此错误

  Error:(25, 13) Failed to resolve: com.google.android.gms:play-services-auth:9.8.0

这些是我制作的Project:MarkRecorder编辑的部分

compile 'com.android.support:appcompat-v7:24.1.0'
 compile 'com.google.android.gms:play-services-auth:9.8.0'
compile 'com.github.bumptech.glide:glide:3.7.0'**

}应用插件:“ com.google.gms.google-services”

和Module:app

dependencies {
    classpath 'com.android.tools.build:gradle:2.1.2'
    classpath 'com.google.gms:google-services:3.0.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

您需要在编译项目之前下载正确版本的Play服务库依赖项。 您可以通过与Android Studio捆绑在一起的SDK管理器来执行此操作。

来自developers.google.com:

1. Start Android Studio.
2. On the Tools menu, click Android > SDK Manager.
3. Update the Android Studio SDK Manager: click SDK Tools, expand Support Repository, select Google Repository, and then click OK.

Google Play服务的当前版本为10.2.0,因此您可能需要返回并手动下载9.8.0(除非您愿意升级)。 检查此链接以获取更多信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM