android studio 代理设置

Mac 系统

Mac 下,~/.gradle 文件夹下打开/新建 gradle.properties 文件,设置代理.

1
2
3
4
5
6
7
8
9
systemProp.http.nonProxyHosts=*.xcompany.com|localhost
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1087
systemProp.https.nonProxyHosts=*.xcompany.com|localhost
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1087

systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
坚持原创技术分享,您的支持将鼓励我继续创作!