Can't Build project in Android Studio after update to 3.1.3

1.1k Views Asked by At

so I'm pretty new to programming so this might be a very obvious mistake but I appreciate any input anyone can provide to help me.Whenever I try to create a new project in Android Studio after my update (3.1.3) I get the following error:

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)

I've tried following:

  • Re-download dependencies and sync project.
  • Searched on stackoverflow and there was a suggestion to delete my gradle files and reopen the app and a newer version of a gradle would download, this did not work.
  • Invalidate the caches in accordance with another stackoverflow suggestion.
  • I believe that my distribution URL is updated.

Something also strange when I try and open old projects that I've made, Android Studio asks if I want to updated Android Gradle Plugin to version 3.1.3 and Gradle to version 4.4. If I click update I get the error message same as before, but if I don't update the projects open fine. Once I have selected update for a certain project there is no way back and it will not open for me.

Thanks for any and all help!

0

There are 0 best solutions below