【问题标题】:Error:(25, 13) Failed to resolve: com.google.android.gms:play-services-auth:9.8.0错误:(25, 13) 无法解决:com.google.android.gms:play-services-auth:9.8.0
【发布时间】:2017-02-25 14:16:28
【问题描述】:

我正在尝试使用 Google 的功能创建 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.google-services'

和模块:应用程序

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
}

【问题讨论】:

    标签: java android api android-studio gmail


    【解决方案1】:

    在编译项目之前,您需要下载您正在使用的 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 服务的当前版本是 10.2.0,因此您可能需要返回并手动下载 9.8.0(除非您愿意升级)。更多信息请查看this link

    【讨论】:

      猜你喜欢
      • 2017-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-15
      • 2018-11-23
      • 1970-01-01
      • 2018-03-27
      • 1970-01-01
      相关资源
      最近更新 更多