解决Re-download dependencies and sync project
程序员文章站
2022-05-31 16:34:44
...
问题描述
新建一个工程,报错
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>
点Re-download下不动,如下图
解决方案
找到./gradle/gradle-warpper.properties文件
把https改成http即可
转载于:https://my.oschina.net/u/1181284/blog/1553139
推荐阅读
-
Android Studio遇到Failed to sync Gradle project错误时的解决办法
-
Maven error: Failed to execute goal on project : Could not resolve dependencies for project 解决办法
-
解决Re-download dependencies and sync project
-
解决Re-download dependencies and sync project
-
Re-download dependencies and sync project (requires network)
-
AS:Failed to open zip file.Re-download dependencies and sync project (requires network)
-
Gradle project sync failed的解决方法
-
androidstudio3.5+创建module Project needs to be converted to androidx.* dependencies的解决方案
-
Android Studio遇到Failed to sync Gradle project错误时的解决办法
-
Error:Failed to open zip file. Re-download dependencies and sync project