Android Studio: Unable to build app due to gradle distribution url error


I know this question has been asked before but I haven’t been able to fix the issue. I am running Android Studio version 3.1.4. I am trying to run an app that I cloned from a Github repository. But even before I try to run it, I get this error:

my-app: sync failed


How do I fix this error? Thanks in advance.


You can check and change the distribution url in the properties file $rootDir/gradle/wrapper/ See property distributionUrl.

Value should be something as follows (update the gradle version depending on your Android Studio version)


Answered By – M.Ricciuti

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published