Gradle behind the proxy in Android Studio 1.3

I just updated Android Studio to the version built on July 28, 2015. And the proxy settings stopped working.

I configured them in AS settings and in gradle.properties projects like this:

systemProp.http.proxyHost=some.proxy.adress.com systemProp.http.proxyPort=3128 

And yet gradle build failed indicates that I should configure the proxy in graddle properties or in the IDE.

Error: connection timeout: connect. If you are behind an HTTP proxy, configure the proxy settings in the IDE or gradle.

What else can I try?

PS The proxy works and is correctly selected from the settings of Android Studio, since git works as expected.

+14
android-studio proxy gradle
Aug 04 '15 at 7:52
source share
2 answers

You may also need to configure https settings

 systemProp.https.proxyHost=www.somehost.org systemProp.https.proxyPort=8080 systemProp.https.proxyUser=userid systemProp.https.proxyPassword=password systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost 
+31
Aug 04 '15 at 13:23
source share

After finding the answer in a few days ...

As Lance said, you need to set gradle.properties for https in the settings (I write the details here for future visitors)

 systemProp.https.proxyHost=some.proxy.adress.com systemProp.https.proxyPort=3128 

At the end, your gradle.properties file (in the root directory of the project) will look like this:

 systemProp.http.proxyHost=some.proxy.adress.com systemProp.http.proxyPort=3128 systemProp.https.proxyHost=some.proxy.adress.com systemProp.https.proxyPort=3128 
+12
Aug 07 '15 at 12:57
source share



All Articles