您的位置:首页 > 大数据 > 人工智能

Gradle Error: Failed to open zip file.

2017-06-18 12:42 381 查看
Gradle Error: Failed to open zip file.

错误信息:

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里修改了gradle的版本,与之前没有报错的gradle版本一致。就可以

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

改为
distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐