网络代理问题:Task :prepareKotlinBuildScriptModel UP-TO-DATE

错误代码如下

> 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!

解决办法,找到 User 目录下的 .gradle 文件下的gradle.properties 文件,打开并删掉代理配置,带有 proxy 的 ip 和端口(不只是IP!!!!还有端口!!!)

网络代理问题:Task :prepareKotlinBuildScriptModel UP-TO-DATE_第1张图片

你可能感兴趣的:(开发问题,android,android,studio)