Sync with Gradle for project ‘XXXX‘ failed: Connection timed out: connect
程序员文章站
2022-06-23 14:06:54
使用android studio同步项目,一直下载不了gradle-3.5.1.pom,每次都会解析阿里云的镜像后失败,跳转去了谷歌的dl.google.com结果因此会导致每次都会连接超时导致这个问题的原因是,https造成的,把https注释掉就会解决问题需要修改的文件路径:C:\Users\Administrator\.gradle\gradle.propertiessystemProp.http.proxyHost=127.0.0.1systemProp.http.prox....
使用android studio同步项目,一直下载不了gradle-3.5.1.pom,每次都会解析阿里云的镜像后失败,跳转去了谷歌的dl.google.com
结果因此会导致每次都会连接超时
导致这个问题的原因是,https造成的,把https注释掉就会解决问题
需要修改的文件路径:C:\Users\Administrator\.gradle\gradle.properties
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080
#systemProp.https.proxyHost=mirrors.opencas.ac.cn
#systemProp.https.proxyPort=80
本文地址:https://blog.csdn.net/zhou_438/article/details/108846713
上一篇: 初遇Linux
下一篇: MySQL---视图、触发器
推荐阅读
-
Sync with Gradle for project ‘XXXX‘ failed: Connection timed out: connect
-
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
-
ERROR: transport error 202: connect failed: Connection timed out
-
Gradle 'xxx' project refresh failed Error:Connection timed out: connect
-
Failed to connect to github.com port 443: Operation timed out /SSL_ERROR_SYSCALL in connection
-
Nginx排错:Nginx日志报错connect() failed (110: Connection timed out) while connecting to upstream
-
Sync with Gradle for project ‘XXXX‘ failed: Connection timed out: connect