项目导入后会报以下错误:
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>
解决办法:
项目视图切换到project,找到gradle下面的wrapper,里面有一个gradle-wrapper.properties文件,打开后修改以下位置:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
例如:修改为(具体修改成哪个版本,可以参照此环境下之前项目)
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip