I just tried setting up a new app with Crashlytics following the docs here: https://rnfirebase.io/crashlytics/usage That went fine, but once I did the Android specific setup (https://rnfirebase.io/crashlytics/android-setup), my app would not compile. Here is the relevant error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'nicola'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve io.fabric.tools:gradle:1.28.1.
Required by:
project :
> Could not resolve io.fabric.tools:gradle:1.28.1.
> Could not get resource 'https://maven.fabric.io/public/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.pom'.
> Could not GET 'https://maven.fabric.io/public/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.pom'.
> Connect to maven.fabric.io:443 [maven.fabric.io/0.0.0.0, maven.fabric.io/0:0:0:0:0:0:0:0] failed: Connection refused (Connection refused)
I guess Google shut down the old fabric.io servers sooner than people expected. I did not get around to doing the iOS specific setup, but looking at the official Firebase docs, I'm guessing those are outdated too.
I got this issue when adding
maven {
url 'https://maven.fabric.io/public'
}
To the wrong block 🤦
It should in in buildscript -> repositories
and NOT allprojects -> repositories