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
answer share from here https://stackoverflow.com/a/37962441/4030497 in case when there are some problems with internet, try to add a line
54.231.14.232 s3.amazonaws.com
to your /etc/hosts (..\Windows\System32\drivers\etc\hosts)