报错如下: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
错误成功解决: