![](/img/trans.png)
[英]Failed to resolve com.google.android.gms play-services-auth:11.4.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.