Java 错误:(25,13)未能解析:com.google.android.gms:play services auth:9.8.0

Java 错误:(25,13)未能解析:com.google.android.gms:play services auth:9.8.0,java,android,api,android-studio,gmail,Java,Android,Api,Android Studio,Gmail,我正试图使用谷歌的功能创建GMail登录系统,但当我尝试同步项目时,我遇到了这个错误 Error:(25, 13) Failed to resolve: com.google.android.gms:play-services-auth:9.8.0 这些是我编辑的部分 项目:MarkRecorder compile 'com.android.support:appcompat-v7:24.1.0' compile 'com.google.android.gms:play-services

我正试图使用谷歌的功能创建GMail登录系统,但当我尝试同步项目时,我遇到了这个错误

  Error:(25, 13) Failed to resolve: com.google.android.gms:play-services-auth:9.8.0
这些是我编辑的部分 项目: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.googleservices”

和模块:应用程序

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 Services库依赖项的正确版本。您可以通过与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 Services的当前版本是10.2.0,因此您可能需要返回并手动下载9.8.0(除非您愿意升级)。查看更多信息