apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.deegi.lab10"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.google.android.gms:play-services-maps:15.6.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
这是同步错误:Failed to resolve: com.google.android.gms:play-services-maps:15.6.1
构建错误:找不到com.google.android.gms:play-services-maps:15.6.1。 在以下位置搜索:
我的模拟器播放服务版本是:11.3.02
答案 0 :(得分:3)
这是因为com.google.android.gms:play-services-maps:15.6.1
不存在。
使用:
com.google.android.gms:play-services-maps:15.0.1