I am trying to run this open source project from github. I am getting this error in gradle. I am running Android studio in \"Administrator mode\". When i click on \"try agai
Just add this line in gradle setting so that your service can be update distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
As a temporary workaround you may download Gradle over http
instead of https
.
Edit gradle/wrapper/gradle-wrapper.properties
,
that should be available at the root of your project, and change distributionUrl to:
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
I just encountered the same problem.
Please change your DNS server setting and reconnect to the Internet. Afterwards, try Gradle sync again.
For example, you can make use of the Google Public DNS, which is 8.8.8.8 and 8.8.4.4.
OpenDNS is an alternative.
I think the site, https://services.gradle.org/distributions/ has wrongly configured ssl certificate issue. The certificate used for that domain is not a proper one for the domain name.
I think you should wait until Gradleware fixes it, and in the meantime, you can temporarily use Emanuel's workaround.