Gradle wrapper download fails via http

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.


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

It works now! Thank you for your response.

Started hitting the same issue. Is there any recent change?
We have 100s of the project with Http setting.
Do we need to change every project to use https instead of Http?