背景:
当下载一个 6.3的 gradle 时,出现了如下报错信息
ERROR: Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
解决办法:
1、首先打开gradle-wrapper.properties文件,该文件路径:D:\DevEcoStudioProjects\HelloWord\gradle\wrapper\gradle-wrapper.properties ,然后查看当前项目的gradle 版本,例如我的gradle版本为 6.3 ,如下图所示: