未能解析:com.google.android.gms:play services maps:15.6.1安装存储库并在“文件显示在项目结构中”对话框中同步项目显示

未能解析:com.google.android.gms:play services maps:15.6.1安装存储库并在“文件显示在项目结构中”对话框中同步项目显示,android,build,android-gradle-plugin,google-play-services,Android,Build,Android Gradle Plugin,Google Play Services,这是同步错误:无法解析:com.google.android.gms:play services地图:15.6.1 生成错误:找不到com.google.android.gms:play services地图:15.6.1。 在以下位置搜索: 我的emulator play services版本是:11.3.02之所以这样,是因为com.google.android.gms:play services maps:15.6.1不存在 使用: 此外,添加build.gradle(Module:app

这是同步错误:
无法解析:com.google.android.gms:play services地图:15.6.1

生成错误:找不到com.google.android.gms:play services地图:15.6.1。 在以下位置搜索:


我的emulator play services版本是:11.3.02

之所以这样,是因为
com.google.android.gms:play services maps:15.6.1
不存在

使用:


此外,添加build.gradle(Module:app)文件minSdkVersion 15。这解决了我的问题。
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'
}
com.google.android.gms:play-services-maps:15.0.1