Error:Failed to open zip file. Gradle's dependency cache may be corrupt

来源:互联网 发布:plc编程前景 编辑:程序博客网 时间:2024/05/16 12:12

转载方法

Error:Failed to open zip file. Gradle's dependency cache may be corrupt




48down voteaccepted

I've faced the same issue this morning after upgrading Android Studio to 2.3. To solve the issue:

1) Manually download Gradle 3.3 binary (direct link: https://services.gradle.org/distributions/gradle-3.3-bin.zip)

2) Open your android studio root directory, and extract the zip to the gradle folder (for example in my Debian machine the full path is /opt/android-studio/gradle/gradle-3.3)

3) Open Android Studio, go to File->Settings->Build, Exectution, Deployment->Gradle and set "Gradle home" to point your new gradle-3.3 folder.

4) Sync and you are ready to go!

I hope that helps ;)


48down voteaccepted

I've faced the same issue this morning after upgrading Android Studio to 2.3. To solve the issue:

1) Manually download Gradle 3.3 binary (direct link: https://services.gradle.org/distributions/gradle-3.3-bin.zip)

2) Open your android studio root directory, and extract the zip to the gradle folder (for example in my Debian machine the full path is /opt/android-studio/gradle/gradle-3.3)

3) Open Android Studio, go to File->Settings->Build, Exectution, Deployment->Gradle and set "Gradle home" to point your new gradle-3.3 folder.

4) Sync and you are ready to go!

I hope that helps ;)

阅读全文
0 0