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

Gradle Error: Failed to open zip file.

2016-10-27 16:46 211 查看
错误信息:

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版本一致。就可以了

http\://services.gradle.org/distributions/gradle-1.1-all.zip

改为

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