Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Damien Watson
Damien Watson
27,419 Points

Remove gradle proxy settings

My work has a proxy which is the bane of all developers. Today I was following the Android course and Gradle threw the message: Could not resolve com.squareup.okhttp:okhttp:2.2.0

After trying some workarounds, figured it was the proxy. I added settings including some through terminal using "gradlew -Dhttp.proxyHost etc" but now I am at home and trying to remove all proxy settings and I figure the ones added through terminal are the last but can't find how to remove or set to null.

I'm hanging to finish this course on networks so would love your help. Thanks.

1 Answer

Damien Watson
Damien Watson
27,419 Points

Typed the following into the command line which seems to have cleared the proxies.

./gradelw -Dhttp.proxyHost