Gradle sync error in Android studio when importing project

前端 未结 4 575
情深已故
情深已故 2020-12-20 11:04

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

相关标签:
4条回答
  • 2020-12-20 11:45

    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

    0 讨论(0)
  • 2020-12-20 11:49

    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
    
    0 讨论(0)
  • 2020-12-20 11:54

    I just encountered the same problem.

    Please change your DNS server setting and reconnect to the Internet. Afterwards, try Gradle sync again.

    Google Public DNS

    For example, you can make use of the Google Public DNS, which is 8.8.8.8 and 8.8.4.4.

    OpenDNS

    OpenDNS is an alternative.

    0 讨论(0)
  • 2020-12-20 11:59

    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. Not trusted certificate

    I think you should wait until Gradleware fixes it, and in the meantime, you can temporarily use Emanuel's workaround.

    0 讨论(0)
提交回复
热议问题