Android Studio设置***代理

File-->Settings... 按照下图配置

  1. 设置自动代理

 

This will attempt to user your system settings and is useful if your system uses a proxy autoconfiguratioin file(.pac)

 

  • 勾选 Auto-detect proxy settings后android studio会自动走你操作系统设置的代理。
  • 勾选Automatic proxy configuration URL并设置本地pac文件

 

2. 设置手动代理
由于***是socks方式所以需要按照下图的方式配置

 

点击ok后会在项目根目录的gradle.properties文件中生成如下代码:

systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080

到此,就配置完毕了。

 

posted @ 2016-06-10 11:33  Master HaKu  阅读(733)  评论(0)    收藏  举报