您的位置:首页 > 理论基础 > 计算机网络

解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy

2016-09-29 21:46 633 查看
总结解决: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

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐