我想在我的Android应用中获取位置并更新到服务器.这是我的Gradle代码,这里包括我compile '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'
}
Run Code Online (Sandbox Code Playgroud)
但这是我得到的错误:
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
Run Code Online (Sandbox Code Playgroud)
单击"安装存储库和同步项目"不起作用.