赞
踩
For Chinese users who often use a proxy to download dependency jars, the cause is often proxy settings.
We should check multiple places if the proxy is correctly configured.
示例:
vim ~/.gradle/gradle.properties
#代理配置
systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyPort=3128
systemProp.http.proxyPort=1087
systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=3128
systemProp.https.proxyPort=1087
在公司里使用内网,还要有
vim ~/.bash_profile
#代理设置
#export http_proxy=http://127.0.0.1:3128
#export https_proxy=http://127.0.0.1:3128
export http_proxy=http://127.0.0.1:1087
export https_proxy=http://127.0.0.1:1087
ssr软件的配置要查看端口号,例如ShadowsocksX-NG 的默认为1087
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。