简体   繁体   English

android studio错误:gradle项目

[英]android studio error :gradle project

android studio gave me this error : android studio给了我这个错误:

Error:Failed to open zip file. 错误:无法打开zip文件。 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的依赖缓存可能已损坏(这有时会在网络连接超时后发生。)重新下载依赖项和同步项目(需要网络)重新下载依赖项和同步项目(需要网络)

how can I solve this? 我该怎么解决这个问题?

Change your distribution url to 将您的分发网址更改为

http HTTP

instead of 代替

https HTTPS

distributionUrl=http://services.gradle.org/distributions/gradle-4.6-all.zip distributionUrl = HTTP://services.gradle.org/distributions/gradle-4.6-all.zip

This worked in my case 这适用于我的情况

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM