Android studio Failed to open zip file解决方案

来源:互联网 发布:电梯乘坐10人答案 知乎 编辑:程序博客网 时间:2024/06/05 18:45

最近更新Android studio的时候,报错

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

这里写图片描述

解决方法,修改gradle-wrapper.properties

发现是

这里写图片描述

https://services.gradle.org/distributions/gradle-3.3-all.zip

不知道为啥不能使用。

最后修改成
https://services.gradle.org/distributions/gradle-3.4-all.zip
同步一下即可
其实去官网发现最新的版本已经去到了3.5
4.0都要出来了。但是3.3为啥不行我没找出问题,如果你知道请留言,谢谢
这里写图片描述

1 0