Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

I updated my Android Studio to 2.3 and it asked me to update my gradle plugin to 3.3 that created issues with my running projects.
I’ve gone through all the Stack solutions and nothing worked for me except this workaround:
I changed my distribution url in gradle-wrapper.properties with this one.

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

(permanent link list here : https://services.gradle.org/distributions/)

My project is up and running.It just asked me to update to gradle build tools 25.0.0 which I did so. Everything is fine now 🙂

  1. Go to the project section and select gradle scripts menu.
  2. Under script, menu select gradle -wrapper.properties
  3. Then replace the distributionUrl=https://services.gradle.org/distributions/gradle-2.2-all.zip with “distributionUrl=https://services.gradle.org/distributions/gradle-3.4.1-all.zip”

enter image description here
note: distributions gradle will change depended upon the version of the android studio.

Leave a Comment