Android Studio / Intellij, Gradle Error:Cause: peer not authenticated

后端 未结 9 616
忘掉有多难
忘掉有多难 2020-12-08 17:06

Having a fight with IntelliJ at the moment. The darn thing won\'t download Gradle 2.1

I have an Android project hosted on GitHub, which I have cloned to my laptop.

9条回答
  •  一向
    一向 (楼主)
    2020-12-08 17:51

    you should import the certificate:

    First of all download the certificate (.cer) from this url, Help is here

    Copy it to the path JDK_HOME/jre/lib/security

    Then with command prompt targeted to above location, run the following command:

    keytool -import -alias git -file  -keystore cacerts -storepass changeit
    

    Type yes if it prompts for approval, after that open the desired IDEA and have fun :)

    If this doesn't help, try importing the certificate to JRE/lib/security/cacerts, It's totally depend on the build path of the IDEA you are using

提交回复
热议问题