Error:Failed to open zip file. Gradle's dependency cache may be corrupt
2017-01-20 10:37
483 查看
首先注明出处:http://blog.csdn.net/u011277123/article/details/52096864
错误日志:
Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>
解决:
修改 gradle-wrapper.properties里的gradle的版本,与之前没有报错的gradle版本一致。就可以了
比如我报这个错的时候 :
修改后:
最后 重新编译一下 解决!
错误日志:
Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>
解决:
修改 gradle-wrapper.properties里的gradle的版本,与之前没有报错的gradle版本一致。就可以了
比如我报这个错的时候 :
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
修改后:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
最后 重新编译一下 解决!
相关文章推荐
- 访问Nginx发生SSL connection error的一种情况
- 异常:javax.el.PropertyNotFoundException: Property 'mainGroupCode' not found on type java.lang.String
- 3分钟解决MySQL主从1594错误
- 星外虚拟主机访问被控出现Unspecified error解决方法
- IIS 错误 Server Application Error 详细解决方法
- On Error Resume Next 语句
- IIS运行错误 Server Application Error 错误代码 Error: 8004的解决方法
- Lua编程示例(一):select、debug、可变参数、table操作、error
- 收集整理的http/1.1 500 server error错误的解决方法
- SQL 2005 ERROR:3145 解决办法(备份集中的数据库备份与现有的数据库不同)
- VBScript中On Error语句用法小结
- 解决VC++编译报错error C2248的方案
- PHP常见的6个错误提示及解决方法
- 解决PHP程序运行时:Fatal error: Maximum execution time of 30 seconds exceeded in的错误提示
- jQuery Uploadify 上传插件出现Http Error 302 错误的解决办法
- JQuery ajax中error返回错误及一直返回error的解答
- PHP函数之error_reporting(E_ALL ^ E_NOTICE)详细说明
- node.js使用npm 安装插件时提示install Error: ENOENT报错的解决方法
- PHP 5.3和PHP 5.4出现FastCGI Error解决方法
- 解决mysql ERROR 1017:Can't find file: '/xxx.frm' 错误