Could not resolve all dependencies for configuration ':classpath'.
Could not find io.fabric.tools:gradle:1.25.1.
Searched in the following locations:
https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.1/gradle-1.25.1.pom
https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.1/gradle-1.25.1.jar
Please check you have added:
maven {
url 'https://maven.fabric.io/public'
}
as explained in the installation notes: https://rnfirebase.io/docs/v4.1.x/crashlytics/android
already added, but still error.
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
maven {
url "https://jitpack.io"
}
maven {
url 'https://maven.fabric.io/public'
}
it needs to be in the buildscript section, not the allprojects section
Thank you @chrisbianca , It work.
Most helpful comment
it needs to be in the
buildscriptsection, not theallprojectssection