无法解决:com.google.android.gms:play-services-clearcut:12.0.1

时间:2019-07-28 07:32:52

标签: android-studio build.gradle google-places-api google-places

当我实现google place依赖性并同步Gradle文件时,它显示错误

无法解决:com.google.android.gms:play-services-clearcut:12.0.1

  

应用程序级别的构建。 Gradle文件

apply plugin : 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.hatimtekri.googlemap"
        minSdkVersion 22
        targetSdkVersion 28
        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:28.0.0'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    //noinspection UseOfBundledGooglePlayServices
    implementation 'com.google.android.gms:play-services:12.0.1'
    implementation 'com.google.android.libraries.places:places:2.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    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.libraries.places:places:2.0.0'

请解决此错误

0 个答案:

没有答案