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。

目录
相关文章
|
11月前
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‘
|
小程序
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‘
121 0
|
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文件的所在路径  
155 0
|
Java 应用服务中间件 Maven
DescriptionResourcePathLocationType ArtifactDescriptorException:Failed to read artifact descripto
DescriptionResourcePathLocationType ArtifactDescriptorException:Failed to read artifact descripto
152 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!
115 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.
198 0
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
104 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
246 0
Error:Could not download ecj.jar : No cached version available for offline mode
|
Android开发 C++
安卓打包失败:opening dependency file *.o.d: No such file or directory
安卓打包失败:opening dependency file *.o.d: No such file or directory
277 0
ROS catkin build 的时候保报错 Assertion failed: check for file existence, but filename
ROS catkin build 的时候保报错 Assertion failed: check for file existence, but filename