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

总结解决: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

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值