Fork me on GitHub Failed to open zip file - 冰路梦 | binglumeng

Failed to open zip file

Posted by 冰路梦 on 2017-06-04

Failed to open zip file

2017年Google I/O大会,发布了Android O以及AndroidStuido 3.0版本的预览版。本技术小白,就尝试了一下新版的Android Studio,系统是LinuxMint18,在创建项目时候,总会一直运行Gradle联网下载依赖,好不容易gradle运行好,偏偏出现了这么个错误:

Failed to open zip file

pic

1
2
3
4
Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)

在此处找到解决方案:方法;

同样,本人也是使用修改项目下gradle-wrapper.properties

1
2
3
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
//改成
distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip

即将https改为http,重新构建一下,就好。估计也许是Stuido的一个Bug吧。