最近更新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为啥不行我没找出问题,如果你知道请留言,谢谢