The solution to the Failed to open zip file problem

Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)

Error as above.

 

The easiest way, and the way I use it, is to change the distributionUrl in gradle-wrapper.properties

Will

  1. distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

change to

  1. distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326094012&siteId=291194637