Error:Failed to open zip file.
程序员文章站
2022-03-03 18:57:07
...
Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
解决方法:
第一步:在AndroidStudio中的Show log in Finder中,查看log日志,在文档中搜索“https://services.gradle.org/distributions”字段,定位类似如下的话:
Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.14.1-all.zip'.
以上的版本号可能不同,2.14.1可能为其他的版本。
第二步:自己去下载对应的gradle的版本,下面提供两个下载的途径
① https://services.gradle.org/distributions/
② http://gradle.android-studio.org/
比如,我的gradle对应的版本是2.14.1,则下载 gradle-2.14-all.zip 即可
第三步:将下载好的zip文件拷贝到如下目录中即可
/Users/你的用户名/.gradle/wrapper/dists/gradle-2.14.1-all/55gk2rcmfc6p2dg9u9ohc3hw9(这里是随机的一串乱码)/
第四步:重启AndroidStudio
推荐阅读
-
Tomcat启动报错:org.apache.catalina.LifecycleException: Failed to start component...java.util.zip.ZipException: error in opening zip file
-
Arduino编程ESP8266下载报错错误:warning: espcomm_sync failed error: espcomm_open failed error: espcomm_uplo
-
ORA-07391: sftopn: fopen error, unable to open text file.
-
Warning: file_get_contents(url): failed to open stream: No error in,该怎么解决
-
关于failed to open stream: No error的异常
-
docker 中的 mysql导入sql脚本时错误指令:Failed to open file "file_name" error 2/error 22
-
ubunttu环境下mysql报错 ERROR: Failed to open file ‘‘/home/yby/***.sql‘‘, error: 2
-
Docker MySQL导入.sql文件(官方Sakila示例库),解决Failed to open file xxx.sql, error: 2
-
Mac下php-fpm启动报错 ERROR: failed to open configuration file... ...
-
Crontab ERROR: failed to open PAM security