I have already created one project and gradle sync worked successfully.
When I try to create another project it fails and gives the error message that
This fixed it for me:
Open /gradle/wrapper/gradle-wrapper.properties
Change 'https' to 'http' in the distributionUrl:
distributionUrl=http\://services.gradle.org/distributions/gradle-2.1-all.zip
Then you need to sync project with gradle files