我試圖獲取位置和更新到服務器我的Android應用程序。 這是我的Gradle代碼,在這裏我包括compile 'com.google.android.gms:play-services:11.2.0'
。這條線路是from the documentation:錯誤:(23,13)無法解決:com.google.android.gms:play-services:11.2.0「安裝存儲庫和同步項目」不起作用
dependencies {
compile 'com.google.android.gms:play-services:11.2.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:25.3.1'
}
但是,這是我的錯誤:
Error:(23, 13) Failed to resolve: com.google.android.gms:play-services:11.2.0
Install Repository and sync project
Show in File
Show in Project Structure dialog
單擊「安裝庫和同步工程」不起作用。
可能重複的[無法解析:com.google.firebase:firebase-core:11.2.0](https://stackoverflow.com/questions/45696551/failed-to-resolve-com-google- firebasefirebase-core11-2-0) – Darush