Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
来源:互联网 发布:电影特效软件 编辑:程序博客网 时间:2024/06/05 07:48
AS导入项目时遇到的错误信息:
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)
今天我在AS(AndroidStudio)导入一个demo的时候,出现了这个错误,当时我也很蒙,因为以前没遇到过,于是我上网查了好多资料,各种百度,结果是告诉我因为gradle问题.
但是这方面我仔细检查过了,包括我导入时候gradle我都替换了,在AS工程中有一个gradle文件夹里第二个文件我也替换掉了,正常不会出现gradle问题啊.
就在我上网查资料的时候,我突然想到会不会AS设置里有问题,所以我又看了AS设置页面,哈哈哈,果不其然。
在设置页面 搜索 gradle 看步骤同学们就应该明白了吧.
原来,我在步骤三的时候 没有选择,这时候你只需要选择Use Local gradle distribution就可以了
当然,这是我为了演示我才把这个勾选项去掉了,正常你第一次选择的时候 下面是不会有路径的,这时候就需要你自己选择路径喽.
我选择的时候,他这个路径所选择的版本是跟我当前这个demo的gradle版本是一致的,我也不知道如果不一致会有什么问题,就是跟下图一致的
当你选择时候完路径确定之后,AS自动编译,demo就可以跑起来了.......
我还遇到过 导入demo后类文件 全部出现红色"J""符号,还有导入demo的时候出现 build.gradle中的 maven编译不通过,这些在以后我会发博客写出来的.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
转载请注明出处!!!
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs afte
- Gradle Error:Failed to open zip file. Gradle's dependency cache may be corrupt.
- Android studio2.3更新以后Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this s
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
- Gradle's dependency cache may be corrupt(this sometimes occurs after a network connection timeout.)
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt
- 解决错误Error:Failed to open zip file. Gradle's dependency cache may be corrupt
- 【Android studio】Error:Failed to open zip file. Gradle’s dependency cache may be corrupt
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt
- 嵌入式环境搭建之基于Ubuntu 14.04下NFS安装配置
- 秉火OV7725驱动日志 第一天
- 倍增lca学习笔记(codevs2370小机房的树题解)
- Android开发第一步,软件准备和环境搭建
- 牛顿法与拟牛顿法学习笔记(三)DFP 算法
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after
- 【数据结构】图的介绍
- matplotlib如何写出汉字
- 小白学爬虫----3--简单爬取“生活大爆炸”贴吧
- TCP/IP详解学习笔记(5)-IP选路,动态选路,和一些细节
- 前端性能优化----几种常用的方法。
- Qt调试 error:expected.........
- HDU
- EasyUI datagrid SpringMVC JPA 翻页功能实现