它向我显示一个解决依赖项失败的错误:
Error:(25, 13) Failed to resolve: com.google.android.gms:play-services-maps:11.4.0
这些是我正在使用的依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-maps:11.4.0'
}
我该怎么办?
compile 'com.google.android.gms:play-services-maps:11.4.0' compile 'com.google.android.gms:play-services-location:11.0.4'
但是我将它们改成了相同的版本,然后它就起作用了:compile 'com.google.android.gms:play-services-maps:11.4.0' compile 'com.google.android.gms:play-services-location:11.4.0'
- Hadi Abu