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

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

    If you are running behind a corporate proxy with SSL interception, you will need to follow these steps to trust your proxy certificate for HTTPS:

    • In Android Studio, Open File -> Settings
      • In Tools -> Server Certificates
        • Tick ‘Accept non-trusted certificates automatically’
        • Also click the ‘+’ and manually add the corporate proxy root certificate.
      • In Appearance and Behaviour -> System Settings -> HTTP Proxy
        • Set your corporate proxy URL and port details
    • Download KeyStore Explorer: http://keystore-explorer.org/downloads.html
    • In KeyStore Explorer (run as admin), open the Android Studio JRE certificate store: C:\Program Files\Android\Android Studio\jre\jre\lib\security\cacerts
      • The password should be ‘changeit’
      • Import the corporate proxy root certificate, and save.
    • In Android Studio, select File -> Invalidate Cache and Restart

提交回复
热议问题