Could not find any version that matches com.google.android.gms:strict-version-matcher-plugin:[15.0.0, 16.0.0)
that strict-version-matcher-plugin
error message is a bogus error message.
there probably is no Google Services plugin in version 4.2.0
yet.
the actual problem is - that it has lost nothing in the Java
dependencies, because those buildscript
dependencies are Gradle
plugins. therefore, replace:
compile "com.google.gms:google-services:+"
with:
api "com.google.android.gms:play-services-base:16.0.0"
api "com.google.android.gms:play-services-auth:16.0.1"
and add it as the bottom line, instead:
apply plugin: "com.google.gms.google-services"
add repository google()
in the root-project build.gradle
:
allprojects {
repositories {
google()
mavenCentral()
jcenter()
}
}
you could also update com.android.tools.build:gradle
from version 3.0.1
to 3.2.1
. there are some more version number to update, because it should target API 28
with build-tools 28.0.3
. also think that with updated build-tools, gradleVersion = "4.6.0"
would be required to build.