gradlew assembleDebug 编译出错

在编译android apk的时候出现以下报错,已经翻墙过了

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!

解决办法:打开~/.gradle/gradle.properties 文件,打开并删掉代理配置(带有“proxy”的端口或ip地址配置)

作者: hqiang1984

量化自我,极简主义

《gradlew assembleDebug 编译出错》有1个想法

发表评论

电子邮件地址不会被公开。