解决Re-download dependencies and s

作者: Sunny旋律 | 来源:发表于2017-10-17 14:45 被阅读755次

问题描述

新建一个工程,报错

  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即可

相关文章

网友评论

    本文标题:解决Re-download dependencies and s

    本文链接:https://www.haomeiwen.com/subject/bujduxtx.html