Search code examples
androidgradlejcenter

jcenter.bintray.com is down Error: 502 Bad Gateway


When trying to build my project I am getting the following error:

Could not GET
'https://jcenter.bintray.com/androidx/lifecycle/lifecycle-common/maven-metadata.xml'.
Received status code 502 from server: Bad Gateway

  • In my build.gradle repositories I don't have JCenter, so this error I'm getting is from dependencies that are still pointing to JCenter.
  • Gradle offline mode is not the solution I'm expecting.
  • I know that JCenter is down and that we should all move to Maven Central (I already did)

Is there a workaround?


Solution

  • It's a global outage in JCenter. You can monitor status at https://status.gradle.com. It replaces the bintray status page which seems is now fully sunset and returns a 502 error.

    UPDATE Jan 13, 06:35 UTC

    JCenter is now back online, and systems are fully operational.

    UPDATE Jan 20

    Gradle Plugin resolution outage postmortem

    https://blog.gradle.org/plugins-jcenter

    Following this incident, the Gradle Plugin Portal now uses a JCenter mirror hosted by Gradle instead of JCenter directly. This should shield users from short JCenter outages for libraries that have been cached by the mirror. We saw another short outage of JCenter over the weekend and this did not appear to impact Gradle Plugin Portal users.