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;
http
and https
configuration in gradle.properties / local.properties
. Preferences-> System Settings-> HTTP Proxy
.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.
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..