Android studio 错误:(22,13)未能解析:com.google.android.gms:play services:11.2.0
刚开始学习Android Studio。我在安卓Studio 2.3.3上 尝试处理mapActivity时,每当同步项目时,我都会遇到此错误 当我点击“安装存储库和同步项目”时,它什么也不做 不知道如何让它工作 这是我的build.gradle依赖项:Android studio 错误:(22,13)未能解析:com.google.android.gms:play services:11.2.0,android-studio,Android Studio,刚开始学习Android Studio。我在安卓Studio 2.3.3上 尝试处理mapActivity时,每当同步项目时,我都会遇到此错误 当我点击“安装存储库和同步项目”时,它什么也不做 不知道如何让它工作 这是我的build.gradle依赖项: dependencies { compile 'com.google.android.gms:play-services:11.2.0' compile fileTree(dir: 'libs', include: ['*.j
dependencies {
compile 'com.google.android.gms:play-services:11.2.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.google.android.gms:play-services-maps:11.0.4'
testCompile 'junit:junit:4.12'
}
顶级生成文件是:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
allprojects {
repositories {
jcenter()
}
}
我有一个类似的问题,在编译库版本的末尾有一个+。我删除了+并简单地使用了 编译'com.google.android.gms:play services:11.0.4'
为我修复了它,我想知道您是否可以尝试其他版本,看看是否有效。检查您的sdk管理器您可能没有安装此软件,或者只是将版本更改为11.0.4