as, idea 出现 Gradle's dependency cache may be corrupt 错误分析

问题:

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 Projects needs to be imported

 

解决:

1.build tools, platform tools版本要一致(SDK Manager中查看);

2.发生如上问题,删除C:\User\account.\.gradle, .android, .androidstudio, .intelidea…目录,然后重启AS, IDEA;

3.如果IDEA目录中缺少gradle文件夹,则拷贝一个过来

 

Android Studio 出现 Gradle’s dependency cache may be corrupt 错误分析 – u011277123的博客 – 博客频道 – CSDN.NET
http://blog.csdn.net/u011277123/article/details/52096864

Android Studio 出现 Gradle’s dependency cache may be corrupt 错误分析 – 银灵子 – 博客频道 – CSDN.NET
http://blog.csdn.net/u014231734/article/details/41913775

    原文作者:petercao
    原文地址: https://www.cnblogs.com/bluestorm/p/6626665.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞