Error:Connection timed out: connect. If you are behind an HTTP proxy, please ...
#竞赛
4964 人阅读
|
1 人回复
|
2016-08-18
|
|
走过路过的大神多留心下,废话不多,下面是主题:
项目给的Larix_Android_Control_Android_Studio工程用一看就是android studio的工程吧,之前也做过android,不过用的是eclipse,身边的大神们用的也是eclipse,在用AS打开该工程时候出现了一下问题:
![]()
上面提示:Gradle project sync failed. Basic functionally (e.g. editing, debugging) will not work properly;
具体的消息是:
Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
Consult IDE log for more details (Help | Show Log)
尝试过的解决办法有:
1, 修改http proxy,界面如下:
![]()
结果:失败!没有解决问题,当然,不适用代理的时候依旧是同样的错误。。
2,使用翻墙软件,能够上youtube了,但是问题还是没有一点转机。。。
3, 尝试过修改hosts文件,在最后一行添加了如下4行
203.208.46.146 www.google.com
74.125.113.121 developer.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
结果:依旧失败!
感觉能着尝试的方法都尝试过了,求大神留言~~
|
|
|
|
|
|
|
|
|
|
|
沙发
鱼鸟2016
发表于 2016-8-19 12:38:33
|
只看该作者
|
|
|
|
|
|
|
|