当初先下面这个错误时
Downloading http://services.gradle.org/distributions/gradle-1.7-all.zip
Unzipping .....
Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: zip file is empty
请查看项目相对路径/gradle/wrapper中的如下配置文件:
gradlew.properties
configuration is:
distributionUrl=http\://services.gradle.org/distributions/gradle-3.4-bin.zip
改成下面这样的,注意是"https"
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-bin.zip
it started working again.
本人(徐自勉)原创内容,转载请注明出处,作者.