欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-04-29 20:29:36
...
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

 

相关标签: IDE