错误:连接超时:在Android Studio中连接

时间:2019-03-17 05:36:49

标签: android android-studio

Gradle构建失败

ERROR: Connection timed out: connect

Here is my image

1 个答案:

答案 0 :(得分:0)

您应在“ gradle.properties”文件中为https设置配置添加以下行

systemProp.https.proxyHost=www.yourhost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser= id
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost