博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Gradlew zip file is empty

Posted on 2019-12-28 13:23  徐自勉  阅读(892)  评论(0编辑  收藏  举报

当初先下面这个错误时

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.