Could not resolve com.google.firebase:firebase-iid:[20.0.1]

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:firebase_messaging:generateDebugRFile’.

Could not resolve all task dependencies for configuration ‘:firebase_messaging:debugRuntimeClasspath’.
Could not resolve com.google.firebase:firebase-iid:[20.0.1].
Required by:
project :firebase_messaging > com.google.firebase:firebase-messaging:20.0.1
Failed to list versions for com.google.firebase:firebase-iid.
Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/firebase/firebase-iid/maven-metadata.xml.
Could not get resource ‘https://google.bintray.com/exoplayer/com/google/firebase/firebase-iid/maven-metadata.xml’.
Could not GET ‘https://google.bintray.com/exoplayer/com/google/firebase/firebase-iid/maven-metadata.xml’. Received status code 502 from server: Bad Gateway

  • Try:

HTTP errors in the 5xx range are server errors.
So the server you try to access has a problem, or some proxy or similar in between has a problem.
But as I also cannot access the URL and even https://status.bintray.com/ is down, I’d say there is a major ****up on the Bintray servers.