Failed to resolve: com.google.android.gms:play-services-basement:12.0.1
Move google()
to before jcenter()
in your build.gradle e.g.
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven { url "https://jitpack.io" }
maven {
url "https://maven.google.com" // Google's Maven repository
}
}
}
In android/app/build.gradle add this:
def _ext = rootProject.ext
def _googlePlayServicesVersion = _ext.has('googlePlayServicesVersion') ? _ext.googlePlayServicesVersion : '+'
In android/build.gradle add this:
ext {
// dependency versions
googlePlayServicesVersion = "+"
}
In general, In next future I recomend to update gradle and SDK in your project
For now you can to try to add maven in android/build.gradle:
buildscript {
repositories {
maven { url "https://maven.google.com" }
jcenter()
...
...
allprojects {
repositories {
mavenLocal()
maven { url "https://maven.google.com" }
jcenter()
...
...