I tried above answers and they didn't help in my case.
I solved it with this link help:
http://vjscrazzy.blogspot.co.il/2016/02/failed-to-sync-gradle-project.html
step 1) file>Setttings>appearance and behaviour> system setttings>HTTP
proxy> set No Proxy
step 2) build,execution and deployment> Build tools > gradle> now
under project level settings > select local gradle distribution>
gradle home = F:/Program Files/Android/Android
Studio/gradle/gradle-2.4
After that, I did these changes(because it still wrote me some other errors)
Android Studio asked me:
Android Studio asked me to update my Gradle version (which he didn't before)
Enable - Tools> Android> Enable ADB integration.
Also, if your working in a team with repositories, it's important to check that the version of the Andorid Studio is the same.