Notification texts go here Contact Us Buy Now!

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

Shohag
I updated android studio 3.0.1 to 3.1 today morning but after the update my gradle ask to update to 4.4 then i press update gradle and there is a bug, gradle doesn't build and it keeps giving me the same error for all projects.

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)

After I've faced this issue i search on google for solution but got some idea to solve the issue:

1) Manually download Gradle 4.4 binary (direct link: https://services.gradle.org/distributions/gradle-4.4-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 C:\Program Files\Android\Android Studio\gradle\gradle-4.4)

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

4) Sync and you are ready to go!

I hope that helps you cause it works for me.
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.
NextGen Digital Welcome to WhatsApp chat
Howdy! How can we help you today?
Type here...