关于“Gradle's dependency cache may be corrupt”错误

来源:互联网 发布:linux读取jar包文件 编辑:程序博客网 时间:2024/05/20 03:37

如果遇到了如下错误 :

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->gradle-wrapper.properties里找到

distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
然后把https改为http,也就是
distributionUrl=http\://services.gradle.org/distributions/gradle-3.2.1-all.zip

这样,然后再try again就好了

阅读全文
0 0
原创粉丝点击