Android studio出现:Cause: error in opening zip file
2017-03-08 10:57
489 查看
解决办法:删除掉
~/.gradle/wrapper/dists/ 下的文件夹,重新运行即可
参考内容:
I had the luxury of comparing differences with working projects. That is how I discovered the error was due to the
in the
In the failing project this was set like
While in the working project this was
Note the difference in the version.
Updating this distributionUrl in gradle-wrapper.properties to this 1.11 link solved the issue for me.
~/.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 distributionUrlproperty
in the
gradle/wrapper/gradle-wrapper.propertiesfile.
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.
相关文章推荐
- android studio报错:Gradle sync failed: Cause: error in opening zip file
- Android Studio 首坑 Gradle sync failed: Cause: error in opening zip file 的错误
- Android Studio 首坑 Gradle sync failed: Cause: error in opening zip file 的错误
- Android Studio 出现error in opening zip file
- 解决Android Studio报错 Cause: error in opening zip file
- Android studio导入eclipse项目报错Cause: error in opening zip file解决方法
- Android Studio 安装时 Gradle sync failed: Cause: error in opening zip file 的错误
- 出现 java.util.zip.ZipException: error in opening zip file 异常的原因及解决方法
- Gradle sync failed: Cause: error in opening zip file
- tomcat 启动项目时出现 ZipException: error in opening zip file
- Android中库项目出现java.util.zip.ZipException: error in opening zip file的问题
- Gradle sync failed: Cause: error in opening zip file 问题解决
- Gradle sync failed: Cause: error in opening zip file
- Gradle sync failed: Cause: error in opening zip file 问题解决
- maven创建web报错Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-compiler-plugin:maven-compiler-plugin:3.5.1:runtime Cause: error in opening zip file
- linux环境下weblogic 部署程序出现java.util,zip.ZpException:error in opening zip file
- mac os 下通过gradle 构建项目报Error:Cause: error in opening zip file问题 解决方法
- [解决问题][不能更新eclipse]错误提示:Error retrieving "feature.xml". [error in opening zip file]
- maven install Failure executing javac 错误: 读取········.jar时出错; error in opening zip file
- Android studio 更新版本2.3出现Error:Failed to open zip file