I updated my Android Studio from 2.2.3 to 2.3
. Since then I am getting this
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>
.....
I am unable to find a solution for it despite searching again & again
This problem arises when android studio is not able to access the gradle.zip file. The easiest way to resolve this is to follow what studio tells you to do, in this case it says to re-download the dependencies. Due to a very minor glitch this doesn't work.
In order to solve it:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
After this studio should be able to download the correct zip file i.e. "gradle-3.3-all.zip"
If this does not help then you will have to make a few efforts.
"Replace being the keyword here."
Sync your project. It may take time to sync, but it will definitely sync. It solved the problem for me. Cheers!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With