javaandroidandroid-studiogradleproxy

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


Solution

  • 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?