Gradle Error: Failed to open zip file.

来源:互联网 发布:php关闭warning警告 编辑:程序博客网 时间:2024/05/21 17:22

错误信息:

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版本一致。就可以了
http\://services.gradle.org/distributions/gradle-1.1-all.zip
改为
http\://services.gradle.org/distributions/gradle-2.10-all.zip
0 0
原创粉丝点击