title: Build android error when download gradle behide proxy with VS2015
body: <p>When I use VS2015 to build android, and start to download gradle, my enviroment is behide corp proxy, and I got the error as below.</p>
  
  <p>Is there anyway to setup gradle proxy when download through proxy?</p>
  
  <pre><code>     ------ Build configuration options: --debug
      1&gt;  Running command: cmd "/s /c "C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\cordova\build.bat --debug --buildConfig=C:\@temp\BlankCordovaApp1\BlankCordovaApp1\build.json""
      1&gt;  ANDROID_HOME=C:\@AppTool\android-sdk-windows
      1&gt;  JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05
      1&gt;  Reading build config file: C:\@temp\BlankCordovaApp1\BlankCordovaApp1\build.json
      1&gt;  Running: C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\gradlew cdvBuildDebug -b C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\build.gradle -Dorg.gradle.daemon=true
      1&gt;  Downloading http://services.gradle.org/distributions/gradle-2.2.1-all.zip
      1&gt;
      1&gt;  Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
      1&gt;      at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
      1&gt;      at org.gradle.wrapper.Install.createDist(Install.java:47)
      1&gt;      at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
      1&gt;      at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
      1&gt;  Caused by: java.net.ConnectException: Connection refused: connect
      1&gt;      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      1&gt;      at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
      1&gt;      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
      1&gt;      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      1&gt;      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      1&gt;      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      1&gt;      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      1&gt;      at java.net.Socket.connect(Socket.java:589)
      1&gt;      at java.net.Socket.connect(Socket.java:538)
      1&gt;      at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
      1&gt;      at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
      1&gt;      at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
      1&gt;      at sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:211)
      1&gt;      at sun.net.www.http.HttpClient.New(HttpClient.java:308)
      1&gt;      at sun.net.www.http.HttpClient.New(HttpClient.java:326)
      1&gt;      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167)
      1&gt;      at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
      1&gt;      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
      1&gt;      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931)
      1&gt;      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
      1&gt;      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
      1&gt;      at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
      1&gt;      at org.gradle.wrapper.Download.download(Download.java:45)
      1&gt;      at org.gradle.wrapper.Install$1.call(Install.java:60)
      1&gt;      at org.gradle.wrapper.Install$1.call(Install.java:47)
      1&gt;      at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
      1&gt;      ... 3 more
      1&gt;
      1&gt;  C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\cordova\node_modules\q\q.js:126
      1&gt;                      throw e;
      1&gt;                      ^
      1&gt;  Error code 1 for command: cmd with args: /s /c "C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\gradlew cdvBuildDebug -b C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\build.gradle -Dorg.gradle.daemon=true"
      1&gt;  Command finished with error code 1: cmd /s /c "C:\@temp\BlankCordovaApp1\BlankCordovaApp1\platforms\android\cordova\build.bat --debug --buildConfig=C:\@temp\BlankCordovaApp1\BlankCordovaApp1\build.json"
      1&gt;ERROR building one of the platforms : error : cmd: Command failed with exit code 1
  </code></pre>