Configuring Proxy Settings
If you are running in a corporate environment with a proxy, you may need to change the proxy settings depending on your environment.
Creating Environment Variables
Create the following environment
variables:
no_proxy=<localhost> http_proxy=http://<PROXY_ADDRESS[:port]> https_proxy=http://<PROXY_ADDRESS[:port]>where <PROXY_ADDRESS[:port]> is the proxy server address (and optionally, port).
Configuring Proxy Settings in Android Studio
- Click Android Studio in the top right and then on Preferences.
- Under IDE Settings click HTTP Proxy.
- Select Auto-detect proxy settings.
- Check Automatic proxy configuration URL and enter http://proxy:8083.
Configuring Proxy Settings in Gradle
- Create a .gradle directory in your home directory.
- Open/Create the file gradle.properties in this directory.
- Add the following
settings:
systemProp.http.proxyHost=proxy systemProp.http.proxyPort=8080 systemProp.http.nonProxyHosts=*.sap.corp|localhost systemProp.https.proxyHost=proxy systemProp.https.proxyPort=8080 systemProp.https.nonProxyHosts=*.sap.corp|localhost