Gradle wrapper download fails via http

(Akira KAWAGUCHI) #1

Hi there,

Recently, download of Gradle Wrapper via http (not https) fails with following messages:

$ ./gradlew tasks
Unzipping ...
Exception in thread "main" zip file is empty
	at Method)
	at org.gradle.wrapper.Install.unzip(
	at org.gradle.wrapper.Install.access$600(
	at org.gradle.wrapper.Install$
	at org.gradle.wrapper.Install$
	at org.gradle.wrapper.ExclusiveFileAccessManager.access(
	at org.gradle.wrapper.Install.createDist(
	at org.gradle.wrapper.WrapperExecutor.execute(
	at org.gradle.wrapper.GradleWrapperMain.main( configuration is:


Only when changing wrapper configuration to use distributionUrl=https\:// it started working again.

I think this issue seems to be a similar problem to old this post.

Since I have developed many projects with http settings, I hope to succeed even via http.


(Mark Vieira) #2

Are you still seeing this error? This was due to a change we made to redirect HTTP to HTTPS which we’ve since reverted.

(Akira KAWAGUCHI) #3

It works now! Thank you for your response.