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.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)

解决方案:

下载 gradle 并替换自己电脑本地的gradle

  1. 下载gradle-4.1-all.zip, 其他版本的 gradle 也行, 然后解压 得到 gradle-4.1-all文件夹
  2. 找到 /home/jl/.gradle/wrapper/dists 替换相应的gradle-4.1-all 文件夹

猜你喜欢

转载自blog.csdn.net/u010784887/article/details/79599010
今日推荐