【发布时间】:2019-09-03 12:16:17
【问题描述】:
我在同步我的项目时遇到了这个错误,我在网上搜索过,但没有得到任何可以让我继续前进的结果
错误
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
}
关于如何让它同步的任何解决方案?
【问题讨论】:
标签: android android-gradle-plugin google-play-services