安卓gradle的时候,会弹出来这样报错。
Task :prepareKotlinBuildScriptModel UP-TO-DATE
IOException: https://dl.google.com/android/repository/addons_list-3.xml
java.net.ConnectException: Connection refused: connect
IOException: https://dl.google.com/android/repository/addons_list-2.xml
java.net.ConnectException: Connection refused: connect
IOException: https://dl.google.com/android/repository/addons_list-1.xml
java.net.ConnectException: Connection refused: connect
Failed to download any source lists!
1.设置 HTTP Proxy ,将其设置为No proxy
2.找到C盘用户文档的 .gradle文件夹的gradle.properties
3.打开并删掉代理配置(带有“proxy”的端口或ip地址配置)



