Re-download dependencies and sync project (requires network)

Android Studio4.1.3版本,创建一个新项目时发现出现下面的问题

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)

 

 

 解决方法

Re-download dependencies and sync project (requires network)

 Re-download dependencies and sync project (requires network)

 

中的

 

 

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

改为:

distributionUrl=https://downloads.gradle-dn.com/distributions/gradle-6.5-bin.zip

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

 

Re-download dependencies and sync project (requires network)

上一篇:执行ajax请求成功后的代码会延迟执行怎么办


下一篇:深入HTML5第三天