Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

来源:互联网 发布:西安市高新区软件新城 编辑:程序博客网 时间:2024/06/02 05:25

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>

解决办法:

File-> Setting->Build,Execution,Deployment->Gradle-> Project-level setting,选择Use local gradle distribution ,Ok一下,最后rebuild 项目。

这里写图片描述

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