Failed To Resolve: Com.google.android.gms:play-services-basement:12.0.1
Here is my dependencies dependencies { compile project(':react-native-fcm') // compile 'com.google.firebase:firebase-core:11.2.0' //FCM - this decides your fireba
Solution 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
}
}
}
Solution 2:
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()
...
...
Post a Comment for "Failed To Resolve: Com.google.android.gms:play-services-basement:12.0.1"