有时候会出现此类报错:
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" 这个文件,修改 distributionUrl 的值,将 "https" 改为 "http" ,再 sync 项目即可。