26

Unable to connect to jcenter address https://jcenter.bintray.com/

Got an 502 Bad Gateway response

enter image description here

And also in my intellj IDE after I click gradle refresh

Could not GET 'https://jcenter.bintray.com/com/github/jnr/jffi/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

Anyone knows what happened?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
cece2048
  • 1,121
  • 2
  • 11
  • 17
  • 3
    maybe the site is under maintenance, try again later. – jayatubi Mar 21 '19 at 08:59
  • yeah I can connected to it now, thank you – cece2048 Mar 21 '19 at 09:04
  • 2
    CONFIGURE FAILED in 2s ERROR: Could not HEAD 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.pom'. Received status code 502 from server: Bad Gateway Enable Gradle 'offline mode' and sync project same issue from IST 1.00pm. – Sivakumar Mar 21 '19 at 09:44

2 Answers2

33

Bin tray is experiencing "intermittent issues" on their download network : https://status.bintray.com/

enter image description here

zayquan
  • 7,544
  • 2
  • 30
  • 39
  • This is affecting any travis CI build that uses the ubuntu trusty distro. The builds fail during apt get update. And probably all kinds of other build systems – zayquan Mar 21 '19 at 09:23
  • Just experienced the same error today, Bintray is currently investigating this issue (Intermittent download issues in Bintray from Europe) – Vadim Kotov Nov 12 '19 at 12:28
  • 2
    Bintray is now sunsetted - https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ – Vadim Kotov Sep 28 '21 at 09:54
  • Bintray is supposedly permanently sunsetted at this point. – Nicolas Mage Dec 24 '21 at 00:37
  • so, what is the alternate now ? – Noor Hossain Jan 22 '22 at 16:30
  • The sunset and it's impact on Jetbrains software is discussed [here](https://blog.jetbrains.com/idea/2021/04/migration-from-bintray/). The way I read that is that you have two options: upgrade to a 2020.3 or newer version, or if that is not possible use a cache redirector which they discuss in the comments on the post. – zayquan Jan 23 '22 at 21:49
-9

suggest you can remove jcenter(),and config aliyun maven

maven { 
  url 'http://maven.aliyun.com/nexus/content/groups/public/' 
}

maven { 
  url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
}
Jared Burrows
  • 54,294
  • 25
  • 151
  • 185