Reputation: 265
I'm facing this error when I'm syncing my project, I've searched over the web and haven't gotten any results that gets me going forward
Error
ERROR: Failed to resolve: com.google.android.gms:play-services-base:17.2.0
Below are my dependencies
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
}
Any solution on how to get it sync?
Upvotes: 1
Views: 1136
Reputation: 363825
The dependency:
implementation 'com.google.android.gms:play-services-base:17.2.0'
(currently) doesn't exist.
Use 17.1.0
or 17.0.0
.
This is list of the latest available versions.
You can also check the history in the release notes page.
Upvotes: 5