I see that this is a common issue apparently, but none of the posted solutions work for me. I have checked and all of my play services and firebase libraries are at the late
Option 1
Downgrade your google service version to 3.2.1
classpath 'com.google.gms:google-services:3.2.1'
Option 2
right after the apply plugin: 'com.google.gms.google-services' at the bottom of your build.gradle the following can be added to work around the issue.
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
most likely ...without knowing what might be in the libs directory:
dependencies {
implementation "com.google.android.gms:play-services-base:16.0.1"
implementation (fileTree(dir: "libs", include: ["*.jar"])) {
exclude group: "com.google.android.gms"
}
}
or enforce the version to select:
configurations.all() {
resolutionStrategy.force "com.google.android.gms:play-services-base:16.0.1"
}
Using the latest version of the library works com.google.firebase:firebase-core:16.0.9
find the latest version frm maven: https://dl.google.com/dl/android/maven2/index.html