当前位置: 代码迷 >> 综合 >> [AS] Failed to open zip file. Gradle's dependency cache may be corrupt...
  详细解决方案

[AS] Failed to open zip file. Gradle's dependency cache may be corrupt...

热度:15   发布时间:2023-12-07 21:18:27.0

问题:
编译工程时报如下错误:

Failed to open zip file.
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

原因:
AS在解压gradle-4.4-all.zip时出错了,可能的原因是zip包损坏了。

解决方法:
下载工程对应的gradle版本的zip包,替换掉在用户的.gradle\wrapper\dists\gradle-4.4-all\9br9xq1tocpiv8o6njlyu5op1目录下的已损坏的zip包,重新build工程。

  相关解决方案