I am using ubuntu 16.04 and after installing android studio and initializing project it is showing error failed to load zip file Gradle dependencies cache may be corrupt clicking on the blue link is doing nothing giving same message again that cannot load zip file

this is the error

  • Can you paste contents of gradle-wrapper.properties – Arun Jun 7 '17 at 18:33
  • i deleted the cache fron .gradle and it worked after re-downloading its content – Adhesh Jun 8 '17 at 23:32

Go to home directory, then click Ctrl+H and search for .gradle directory

  1. .gradle>wrapper>dists
  2. You will find the all gradle files
  3. Remove that gradle file which is causing the problem and go to Android studio and Try Again.
  4. It will start downloading that file.
  5. If that does not work download that gradle file manually from https://services.gradle.org/distributions/
  6. Extract it and replace the file which one is in dists directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.