您的位置:首页 > 移动开发 > Android开发

Android studio出现:Cause: error in opening zip file

2017-03-08 10:57 489 查看
解决办法:删除掉
~/.gradle/wrapper/dists/ 下的文件夹,重新运行即可

参考内容:


The solution that worked for me

I had the luxury of comparing differences with working projects. That is how I discovered the error was due to the 
distributionUrl
 property
in the 
gradle/wrapper/gradle-wrapper.properties
 file.

In the failing project this was set like 
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
.
While in the working project this was 
distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip
.
Note the difference in the version.

Updating this distributionUrl in gradle-wrapper.properties to this 1.11 link solved the issue for me.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐