在我的项目中将Android Studio更新到最新版本(3.1)和gradle版本后,出现错误(链接始终不同):
12:54 Gradle sync started
12:56 Gradle sync failed: Could not HEAD 'https://jcenter.bintray.com/com/android/tools/analytics-library/shared/26.1.0/shared-26.1.0.jar'. Received status code 502 from server: Bad Gateway Consult IDE log for more details (Help | Show Log) (1m 56s 602ms)
12:56 Gradle sync started
12:57 Gradle sync failed: Could not HEAD 'https://jcenter.bintray.com/org/codehaus/mojo/animal-sniffer-parent/1.14/animal-sniffer-parent-1.14.pom'. Received status code 502 from server: Bad Gateway Consult IDE log for more details (Help | Show Log) (1m 4s 266ms)
12:58 Gradle sync started
12:59 Gradle sync failed: Could not HEAD 'https://jcenter.bintray.com/com/sun/activation/all/1.2.0/all-1.2.0.pom'. Received status code 502 from server: Bad Gateway Consult IDE log for more details (Help | Show Log) (1m 29s 985ms)
13:01 Gradle sync started
13:02 Gradle sync failed: Could not HEAD 'https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'. Received status code 502 from server: Bad Gateway Consult IDE log for more details (Help | Show Log) (4s 976ms)
Android Studio版本:
Android Studio 3.1
Build #AI-173.4670197, built on March 22, 2018
JRE: 1.8.0_152-release-1024-b02 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
我已经尝试了干净的重建和更新gradle,重新启动Android Studio和PC,但是没有成功。有任何想法吗?
PS:我当然有互联网。另外,如果您在浏览器中打开一个链接,则会下载文件。