我是靠谱客的博主 高贵裙子,这篇文章主要介绍Gradle's dependency cache may be corrupt,现在分享给大家,希望可以做个参考。

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>


解决办法

修改文件gradle-wrapper.properties

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

修改为你本地存在的gradle版本

查看本地gragle版本方法

以下是我本地的gradle版本

C:Userszpc012.gradlewrapperdists

最后

以上就是高贵裙子最近收集整理的关于Gradle's dependency cache may be corrupt的全部内容,更多相关Gradle's内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(143)

评论列表共有 0 条评论

立即
投稿
返回
顶部