Android Studio configure HTTP proxy

Android Studio configure HTTP proxy

When developing with Android Studio, sometimes we need to access the Internet through an HTTP proxy, such as downloading libraries, plug-ins, or updating tools. This article will introduce how to configure HTTP proxy in Android Studio.

Step 1: Open Android Studio
First, we need to open Android Studio. After launching, select the "File" option on the top menu bar, then click "Settings" to open the settings window.

Step 2: Open the proxy settings.
In the settings window, select "Appearance & Behavior" on the left, and then click "HTTP Proxy" under "System Settings".

Step 3: Configure the proxy server
In the "HTTP Proxy" tab, we can see two main configuration options, namely "Auto-detect proxy settings" and "Manual proxy configuration".

If your network environment supports automatic detection of proxy settings, you can select "Auto-detect proxy settings" so that Android Studio will automatically obtain the proxy settings.

Otherwise, you need to select "Manual proxy configuration" and fill in the proxy server details. In the "Host name" field, enter the host name or IP address of the proxy server. In the "Port number" field, enter the port number of the proxy server. If you need to verify your identity, you need to check the "Authentication" option and provide your username and password.

Finally, click the "Test Connection" button to test

Guess you like

Origin blog.csdn.net/Book_Sea/article/details/132369183