跳至主要内容

Error:Cause: dl.google.com:443 failed to respond

 

到电脑根目录下面的.gradle/gradle.properties
把里面的内容修改成

# org.gradle.parallel=true

#Fri Jun 29 10:45:08 CST 2018

#systemProp.https.proxyPort=1080

systemProp.http.proxyHost=127.0.0.1

#systemProp.https.proxyHost=127.0.0.1

systemProp.http.proxyPort=1080 
 
 
电脑根目录下面的(不是项目目录!!!windows10目录在C:\Users\XXX.gradle其中XXX为本地用户名.gradle/gradle.properties中添加如下

#systemProp.https.proxyPort=1080
#systemProp.http.proxyHost=127.0.0.1
#systemProp.https.proxyHost=127.0.0.1
#systemProp.http.proxyPort=1080
org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080
因为我用的sock5所以只需要最后的一行,如果是http代理,那就如前面回答,仅保留关于http配置的即可。

 

评论

此博客中的热门博文

ubuntu 添加root登录

Login to your server as root. As the root user, edit the sshd_config file found in  /etc/ssh/sshd_config : vim /etc/ssh/sshd_config ( For details on working with Vim check out our article here !) Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there. PermitRootLogin yes Save and exit the file. Restart the SSH server: systemctl restart sshd or service sshd restart