我试图获取位置和更新到服务器我的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