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
I also faced the same issue and the problem was related to certificates. 1: So first step is go to Build-> Clean Project. It will give you the details about the error. 2: Copy URL which is failing from the stack-trace. For eg build is failed to download some file, stack-trace will have the information of the URL. 3: Open the url in a browser, if you are able to open it that means your proxy settings are fine but java is unable to trust the source to download it. 4: So you need to copy the certificate manually and put in the jre certificates. And rebuild should resolve the problem. 5: Or if you have the latest jre verison, it might solve the problem.