首先注明出处:http://blog.csdn.net/u011277123/article/details/52096864
错误日志:
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里的gradle的版本,与之前没有报错的gradle版本一致。就可以了
比如我报这个错的时候 :
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
修改后:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
最后 重新编译一下 解决!