欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Failed to open zip file. Gradle‘s dependency cache may be corrupt (this sometimes occurs after a net

程序员文章站 2022-05-31 16:10:02
...

解决方法

AndroidStudio

1.在AndroidStudio下面的Terminal(终端)上输入以下

gradlew --warning-mode all      (中间有空格)

如果出现下面的报错信息,说明你的jdk没安装,(我重装系统就没安装jdk了,无语了)。

https://github.com/frekele/oracle-java/releases(此为快速,快速下载jdk的git网址)

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.