Gradle 'HelloWorld' project refresh failed
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, File->Invalidate Caches / Restart... ; 即可;
解决方法二:file ->settings->Build Tools ->Gradle 进行如下红框里的设置,即指定本地android studio里的Gradle路径。
![](https://i-blog.csdnimg.cn/blog_migrate/0eec78a65d12a513a08f6e9a5ce89b8d.png)
![](https://i-blog.csdnimg.cn/blog_migrate/8a59cc7a24ac4ada65749d8f5eb48cf5.png)
再按照方法二来选择这个目录,就行了。