“Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.”
解决方法:
打开Run/Debug Configurations--->Default--->Gradle--->VM options:配置以下内容:
systemProp.http.proxyHost=some.proxy.adress.com
systemProp.http.proxyPort=3128
systemProp.https.proxyHost=some.proxy.adress.com
systemProp.https.proxyPort=3128
然后clean project----->再同步一下build.gradle。就OK了。
不同场景可能有不同的解决办法,我所遇到的这么做就没问题。
代理配置参考:http://blog.csdn.net/zhengdan66/article/details/48158523
8769

被折叠的 条评论
为什么被折叠?



