总结解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
我的是Android Studio 2.2,从SVN更新工程后,出现这个问题,从网上找了很多方法,最终解决了,于是就把总结的方法分享出来,
因为有的文章涉及到原创,就直接粘贴链接,原版写的很详细:
解决方法1、修改工程的网关
Android Studio 1.3.0 以上gradle proxy代理设置异常
http://blog.csdn.net/zhengdan66/article/details/48158523
解决方法2:修改本地配置文件
解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
http://blog.csdn.net/jacklog/article/details/51218631
我的问题用方法一不管用,最终用方法二修改本地配置文件解决的;
我的是Android studio2.2,我的本地配置修改为:
工程根目录build.gradle,不是module中的。
dependencies { classpath 'com.android.tools.build:gradle:2.2.0' }
工程根目录中gradle文件夹-->>wrapper文件夹-->>gradle_wrapper.properties中:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip