Error:Failed to open zip file. Re-download dependencies and sync project
程序员文章站
2022-03-03 19:06:31
...
- 错误
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\://services.gradle.org/distributions/gradle-3.3-all.zip
- 解决办法二
手动下载并替换相应版本zip。
上一篇: Http协议简介
下一篇: 快速删除node_modules
推荐阅读
-
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
-
AS:Failed to open zip file.Re-download dependencies and sync project (requires network)
-
Error:Failed to open zip file. Re-download dependencies and sync project
-
Error:Failed to open zip file.