出错信息
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
- 下载gradle-4.1-all.zip, 其他版本的 gradle 也行, 然后解压 得到 gradle-4.1-all文件夹
- 找到
/home/jl/.gradle/wrapper/dists
替换相应的gradle-4.1-all
文件夹