Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling proxy settings in Android Studio 3.2.1 not working

Sometimes I am working in internal network and have to setup proxy settings in Android Studio now I have changed the network and need to disable proxy settings to be able to download dependencies.

But somehow I can't disable proxy configuration. Android Studio is still trying to connect through proxy. Here is what I did to disable it;

  1. Removed http and https configuration in gradle.properties / local.properties.
  2. Disabled proxy configuration in Preferences-> System Settings-> HTTP Proxy.
  3. Removed operating system proxy settings in network.
  4. Uninstall & install Java
  5. Uninstall & install SDK
  6. Uninstall & install Android Studio

Unfortunately none of above steps and the answers in community worked. Feeling so desperate :)

Here is the screenshot of Android Studio. My final choice will be formatting macOS.

enter image description here

like image 822
Sabri Meviş Avatar asked Nov 29 '18 19:11

Sabri Meviş


People also ask

Where is proxy setting in Android Studio?

Set up the Android Studio proxy To set the HTTP proxy settings in Android Studio: From the menu bar, click File > Settings (on macOS, click Android Studio > Preferences). In the left pane, click Appearance & Behavior > System Settings > HTTP Proxy. The HTTP Proxy page appears.


Video Answer


1 Answers

I think you have global properties for proxy settings. You can check the global gradle properties from here.

We can define a gradle.properties file and set the property in this file. We can place the file in our project directory or in the <USER_HOME>/.gradle directory. The properties defined in the property file in our home directory take precedence over the properties defined in the file in our project directory. As a bonus we can also define system properties in a gradle.properties file, we only have to prefix the property name with systemProp..

Global gradle proxy settings?

like image 114
Canpolat Oral Avatar answered Sep 19 '22 14:09

Canpolat Oral