当我尝试添加以下依赖项时出现错误: 编译com.google.android.gms:play-location-maps'
到Build.gradle(模块:app)
然后我收到错误:
错误:(34,13)无法解决:com.google.android.gms:play-location-maps:11.0.2
但是,当我说安装存储库和同步项目时,它不起作用。 如何解决此错误?
我的Build.Gradle(模块:app)
{
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-core:11.0.2'
compile 'com.google.firebase:firebase-database:11.0.2'
compile 'com.google.firebase:firebase-auth:11.0.2'
compile 'com.google.android.gms:play-services-maps:11.0.2'
compile 'com.google.android.gms:play-location-maps:11.0.2'
testCompile 'junit:junit:4.12'
如何解决此错误?