9

Gradle Failed to open zip file. 解决方法

 2 years ago
source link: https://idealclover.top/archives/350/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Gradle Failed to open zip file. 解决方法

2018.09.22 | 零零碎碎 | 1715 浏览 | 0 赞 | 0 条评论


请注意,本文编写于 1157 天前,最后修改于 931 天前,其中某些信息可能已经过时。

这两天在弄安卓相关,也就免不了与 android-studio 打交道.

在编译项目的过程中遇到了以下错误:

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/gradle-wrapper.properties 中的

distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
apache
distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip
apache

即可 (即去掉一个 s)
究其原因好像是 gradle 下载这个网站并没有 https...
不得不说国内的环境对开发者太不友好了...

本文链接:https://idealclover.top/archives/350/

本作品由 idealclover 采用 知识共享署名 - 非商业性使用 - 相同方式共享 4.0 国际许可协议 进行许可,转载请注明出处。

标签: network, requires, project


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK