Gradle Error: Failed to open zip file.
错误信息:
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版本一致。就可以
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip改为
distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip