Sync with Gradle for project ‘XXXX‘ failed: Connection timed out: connect

I use android studio to synchronize the project, and I can’t download gradle-3.5.1.pom, and it fails every time after parsing the Alibaba Cloud image, I jump to Google’s dl.google.com

As a result, the connection will time out every time

The reason for this problem is that https is caused. Commenting out https will solve the problem

 The file path that needs to be modified: 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

 

Guess you like

Origin blog.csdn.net/zhou_438/article/details/108846713