欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决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下不动,如下图 解决Re-download dependencies and sync project

解决方案

找到./gradle/gradle-warpper.properties文件

解决Re-download dependencies and sync project 把https改成http即可

转载于:https://my.oschina.net/u/1181284/blog/1553139