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
In case this helps someone, I had the same issue and even though I set the proxy through the studio settings ( which adds the values of systemProp.http.proxyHost and systemProp.http.proxyHost to gradle.properties), https proxy was not set, so I added this in gradle.properties
systemProp.https.proxyHost =
systemProp.https.proxyPort =
and problem solved!