错误:连接超时:连接 [英] Error:Connection timed out: connect

查看:180
本文介绍了错误:连接超时:连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Android Studio 1.5.1的gradle版本从1.5更改为2.10,并单击同步,(错误图像),但是出现错误:


错误:连接超时:连接。如果您使用的是HTTP代理,请在IDE或Gradle中配置代理设置。


解决方案

<在gradle脚本中加入你的gradle.properties文件并加入:

systemProp.http.proxyHost = 127.0.0.1 $ b

systemProp.http.proxyPort = 3128 //输入您的代理端口



systemProp.https.proxyHost = 127.0.0.1



systemProp.https.proxyPort = 3128 // //输入您的代理端口。您可以通过转到Internet选项 - >连接 - > LAN设置 - >高级 - >端口来查找代理端口。

I changed the version of gradle of Android Studio 1.5.1 from 1.5 to 2.10 and clicked sync now, (error image) but the follow ERROR ocurred :

Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

解决方案

go to your gradle.properties file in gradle scripts and add this :

systemProp.http.proxyHost=127.0.0.1

systemProp.http.proxyPort=3128 // enter your proxy port

systemProp.https.proxyHost=127.0.0.1

systemProp.https.proxyPort=3128 // enter your proxy port. You can find proxy port by going to internet option-> connections -> LAN settings -> Advanced -> port

这篇关于错误:连接超时:连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆