gradle刷新后jcenter 502错误的网关

时间:2019-03-21 08:58:09

标签: java gradle jcenter

无法连接到jcenter地址 https://jcenter.bintray.com/

收到502错误的网关响应 enter image description here

以及在单击gradle刷新后的智能提示中

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

有人知道发生了什么事吗?

2 个答案:

答案 0 :(得分:18)

垃圾箱的下载网络上出现“间歇性问题”:https://status.bintray.com/

enter image description here

答案 1 :(得分:5)

建议您可以删除jcenter(),并配置aliyun maven

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

maven { 
  url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
}