报错如下:Connection refused
解决方案:
打开gradle-wrapper.properties修改distributionUrl
将:
distributionUrl=http\://localhost/gradle/distributions/gradle-6.5-bin.zip
替换为:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
错误成功解决:
如提示代理问题,修改服务器为国内的镜像服务器: mirrors.neusoft.edu.cn