Android Studio 1.4, Gradle, and bloody proxies.

Today, children, we’ll be buggering about with Android studio 1.4. AND we’ll be swearing a lot. Why will we be swearing a lot? because it means we have to play with gradle, from behind our corporate firewall. when you install Android Studio, you have to set it up to play with your proxy. you do this here:

image

 

but gradle doesn’t pick them up from here. Gradle needs them in the gradle.properties file in your project:

image

and save, and restart android studio…

or you can alter this file here:

image

oh, and don’t be trying to do this:

systemProp.http.proxyUser=Domain\User

it will error. you need to escape your slash like so:

systemProp.http.proxyUser=Domain\\User

 

for the avoidance of doubt – you need “\\” not “\”.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: