出现Failed to open zip file问题的解决方法

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)

错误如上。

最简单的方法,也是我采用的方法,就是改一下gradle-wrapper.properties中的distributionUrl

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

改成

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

猜你喜欢

转载自jameskaron.iteye.com/blog/2408426