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

前端 未结 22 1227
无人及你
无人及你 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: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
    

提交回复
热议问题