how to resolve 'unable to find valid certification path to requested target' on Android Studio 2.3.2

不问归期 提交于 2019-11-30 13:41:41

This is too late but I have faced same issue and resolve it.

I am getting this issue due to I am running Android Studio behind corporate proxy(Office PC). In this case you have to setup proxy in Android Studio.

Here is details form Android for Proxy setup:

Android Studio supports HTTP proxy settings so you can run Android Studio behind a firewall or secure network. To set the HTTP proxy settings in Android Studio:

  1. From the menu bar, click File > Settings (on a Mac, click Android Studio > Preferences).
  2. In the left pane, click Appearance & Behavior > System Settings > HTTP Proxy. The HTTP Proxy page appears.
  3. Select Auto-detect proxy settings to use an automatic proxy configuration URL for the proxy settings or Manual proxy configuration to enter each of the settings yourself. For a detailed explanation of these settings, see HTTP Proxy.
  4. Click Apply or OK for your changes to take effect.

Yo can find more details about this on below link https://developer.android.com/studio/intro/studio-config#proxy

This error mostly occur when we are trying to sync project's gradle without internet connection.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!