同步错误:com.google.android.gms:play-services-base:17.2.0

时间:2019-09-03 12:16:17

标签: android android-gradle-plugin google-play-services

当我同步项目时,我遇到了这个错误,我已经在网上搜索了,但是没有得到任何可以推动我前进的结果

错误

ERROR: Failed to resolve: com.google.android.gms:play-services-base:17.2.0

下面是我的依赖项

buildscript {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }

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

    dependencies {
        implementation fileTree(dir: 'libs', include: '*.jar')
        // SUB-PROJECT DEPENDENCIES START
        implementation(project(path: ":CordovaLib"))
        implementation 'com.android.support:support-annotations:28.0.0'
        implementation 'com.android.support:support-v4:28.0.0'
        implementation 'com.android.support:support-v4:28.0.0'
        implementation 'com.android.support:support-v13:28.0.0'
        implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
        implementation 'com.google.firebase:firebase-core:17.2.0'
        implementation 'com.google.firebase:firebase-messaging:20.0.0'
        implementation 'com.google.android.gms:play-services-base:17.2.0'
        implementation 'com.google.android.gms:play-services-ads:18.2.0'

        // SUB-PROJECT DEPENDENCIES END
    }

有什么解决方案可以同步吗?

1 个答案:

答案 0 :(得分:5)

依赖项:

implementation 'com.google.android.gms:play-services-base:17.2.0'

(当前)不存在

使用17.1.017.0.0

This是最新可用版本的列表。
您还可以在release notes页中查看历史记录。