Error:Failed to open zip file. Re-download dependencies and sync project

简介: Error:Failed to open zip file. Re-download dependencies and sync project

错误

Gradle 'Android-USB-OTG-Camera' project refresh failed
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-wrapper.properties,distributionUrl修改为:

distributionUrl=https\://downloads.gradle-dn.com/distributions/gradle-3.3-all.zip

解决办法二

手动下载并替换相应版本zip。

目录
相关文章
fatal error: ft2build.h: 没有那个文件或目录
fatal error: ft2build.h: 没有那个文件或目录
313 0
|
7月前
Error:npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\XX\package.json‘son‘
Error:npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\XX\package.json‘son‘
|
8月前
|
小程序
npm ERR! enoent ENOENT: no such file or directory, open ‘D:\package.json‘
npm ERR! enoent ENOENT: no such file or directory, open ‘D:\package.json‘
56 0
|
8月前
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
94 0
|
Java 应用服务中间件 Maven
DescriptionResourcePathLocationType ArtifactDescriptorException:Failed to read artifact descripto
DescriptionResourcePathLocationType ArtifactDescriptorException:Failed to read artifact descripto
123 0
DescriptionResourcePathLocationType ArtifactDescriptorException:Failed to read artifact descripto
|
开发工具
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
96 0
cl.exe is unable to create an executable file. C compiler test failed.
cl.exe is unable to create an executable file. C compiler test failed.
167 0
|
Android开发 C++
安卓打包失败:opening dependency file *.o.d: No such file or directory
安卓打包失败:opening dependency file *.o.d: No such file or directory
236 0
|
缓存
Error:Could not download ecj.jar : No cached version available for offline mode
Error:Could not download ecj.jar : No cached version available for offline mode
207 0
Error:Could not download ecj.jar : No cached version available for offline mode