gradle status code 503问题

多次遇到这个坑,在gradle构建项目的时候,报错请求某个依赖文件 status 503


clipboard (2).png

用网页打开链接也是可以的。有的电脑可以有的不可以。后来发现是全局的gradle.properties中设置的代理,估计是as中设置过的,即使as不使用代理,这个代理还是会存在的。那么删除代理配置的地方,问题就解决了
gradle.properties 路径 C:\Users\xxxx.gradle

## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Wed Nov 13 18:12:49 CST 2019
# 删除下面代理配置
#systemProp.http.proxyHost=xxx.xx.com 
#systemProp.http.proxyPort=8080

你可能感兴趣的:(gradle status code 503问题)