ОШИБКА: не удалось разрешить: com.google. android .gms: play-services-location: 16.1.0 - PullRequest
0 голосов
/ 29 января 2020

При попытке интегрировать Location Client в мое приложение, была найдена эта проблема. Не удалось решить: om.google. android .gms: play-services-location: 15.0.1

Ниже приведены мои файлы сборки Gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.android.findme"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'
    implementation 'com.google.android.gms:play-services-location:16.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

И

buildscript {
    repositories {
        google()
        jcenter()
        maven {
            url "https://maven.google.com"
        }

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'

    }
}

allprojects {
    repositories {
        google()
        jcenter()

    }

1 Ответ

1 голос
/ 29 января 2020

Версия 16.1.0 для com.google.android.gms:play-services-location не существует, как вы можете видеть здесь на странице заметок о выпуске

Вы можете использовать com.google.android.gms:play-services-location:16.0.0 или com.google.android.gms:play-services-location:17.0.0

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...