Android开发经验谈Android开发技术干货

解决Re-download dependencies and s

2017-10-17  本文已影响755人  Sunny旋律

问题描述

新建一个工程,报错

  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下不动,如下图


image.png

解决方案

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

image.png

把https改成http即可

上一篇 下一篇

猜你喜欢

热点阅读