gradle代理设置

在用户目录下找到隐藏文件夹.gradle,在该目录下找到文件gradle.properties(默认不存在,需要手动创建),将下面内容写入文件中

<!-- lang: shell -->
systemProp.http.proxyHost=www.proxyhost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

systemProp.https.proxyHost=www.proxyhost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

你可能感兴趣的:(gradle代理设置)