不得不说,Gogole太能玩开发者,自己提供的解决方案,竟然不能用,有考虑过我们这些苦逼的中国开发者的感受么。
好吧,先搜搜看,就用android studio 1.3 proxy
做关键词,别用百度,
然后看我找到了什么:
https://code.google.com/p/android/issues/detail?id=176296
Android Studio sets automatically the proxy settings for gradle in gradle.properties.
You should add the proxy-Settings for https, not only for http:
systemProp.https.proxyHost=
systemProp.https.proxyPort=Reproducable in Android Studio 1.3 (AI-141.1989493) (RC3?)
试试看,往项目的gradle.properties
里面多加两句
1 2 |
systemProp.https.proxyHost=127.0.0.1 systemProp.https.proxyPort=8123 |
经检验,成功启动代理,麻麻再也不用担心被墙了。