title: Gradle can't compile behind proxy
body: <p>I'm trying to compile an Android project behind a proxy. Most of my dependencies compile fine, but when I add Robolectric to my build.gradle class path I always get errors. So my first proxy configuration is done in <code>Preferences -&gt; HTTP Proxy</code>. When I try to compile with just these settings I get a 407 response:</p>
  
  <pre><code>Error:Could not HEAD 'http://repo1.maven.org/maven2/org/robolectric/robolectric-gradle-plugin/0.12.0/robolectric-gradle-plugin-0.12.0.jar'. Received status code 407 from server: AuthorizedOnly
  </code></pre>
  
  <p>Which doesn't really make sense because I provide my credentials in the <code>HTTP Proxy</code> settings. Additionally, I try the test-url function on the <code>HTTP Proxy</code> page and it says connection successful.</p>
  
  <p>So then I try adding settings in the gradle.properties file. Which then gives me the following 500 error:</p>
  
  <pre><code>Error:Could not HEAD 'http://repo1.maven.org/maven2/org/robolectric/robolectric-gradle-plugin/0.12.0/robolectric-gradle-plugin-0.12.0.jar'. Received status code 500 from server: ruleengineerror
  </code></pre>
  
  <p>Are there any settings I'm forgetting? Why are my other dependencies from mavenCentral able to compile? I freshly imported this product so I didn't begin with a cache and if I take the Robolectric out it compiles fine.</p>
  
  <p>Any help would be appreciated. If this is too localized I apologize in advance. </p>