Error:Cause: unable to find valid certification path to requested target

前端 未结 22 1078
无人及你
无人及你 2020-11-29 05:47

I got the following Error in android Studio 2.2.3 when I sync gradle.

Error:Cause: unable to find valid certification path to requested target

相关标签:
22条回答
  • 2020-11-29 06:26

    Like a noob!

    I was getting a nightmare with this and forgot that i've recently installed a new AV (Kaspersky)

    So another solution is: Disable your AV or add exclusions to your AV firewall or proxy

    hope it helps to save some time.

    0 讨论(0)
  • 2020-11-29 06:27

    Run bellow command in Android studio terminal after opening the same project. It worked for me.

    On Windows:

    gradlew cleanBuildCache
    

    On Mac or Linux:

    ./gradlew cleanBuildCache
    
    0 讨论(0)
  • 2020-11-29 06:28

    This problem might be due to some restricted internet connections... If you are installing build tools on some restricted network, the required certificates might not install... So try changing the network connection.... Worked for me.....

    0 讨论(0)
  • 2020-11-29 06:29

    I had the same problem. I fixed it by removing/commenting proxy settings in gradle.properties. Check your gradle.properties, if you have some like this

    systemProp.https.proxyPort=8080
    systemProp.http.proxyHost=192.168.1.1
    systemProp.https.proxyHost=192.168.1.1
    systemProp.http.proxyPort=8080
    

    comment it with #. Which will look like this

    #systemProp.https.proxyPort=8080
    #systemProp.http.proxyHost=192.168.1.1
    #systemProp.https.proxyHost=192.168.1.1
    #systemProp.http.proxyPort=8080
    
    0 讨论(0)
提交回复
热议问题