Reputation: 8410
I've just upgraded Android Studio to version built on 28 July 2015. And proxy settings stopped working.
I have them configured in AS preferences and in project's gradle.properties like this:
systemProp.http.proxyHost=some.proxy.adress.com
systemProp.http.proxyPort=3128
And yet gradle build fails suggesting I should configure the proxy in either graddle properties or IDE.
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
What else can I try?
P.S. Proxy works and is picked-up properly from Android Studio preferences, as git works as expected.
Upvotes: 16
Views: 43780
Reputation: 27976
Perhaps you also need to configure the 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
Upvotes: 32
Reputation: 440
After finding an answer for days...
As Lance said, you need to set in the gradle.properties settings for https (I write details here for further visitors)
systemProp.https.proxyHost=some.proxy.adress.com
systemProp.https.proxyPort=3128
At the end, your gradle.properties file (on the root of the project) will be :
systemProp.http.proxyHost=some.proxy.adress.com
systemProp.http.proxyPort=3128
systemProp.https.proxyHost=some.proxy.adress.com
systemProp.https.proxyPort=3128
Upvotes: 12