查看详细出错内容
Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect
修改C:\Users\XXX(用户名)\.gradle\gradle.properties 的内容
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyHost=1080
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyHost=1080
把以上代理内容给注释掉
#systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyHost=1080
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyHost=1080
重新同步解决。