title: ionic/cordova error code 1, error building one of platforms
body: <p>Ok i have installed:</p>
  
  <p>nodejs  v 5.4.0 (latest)</p>
  
  <p>ant     v 1.9.6 (latest)</p>
  
  <p>java    v 1.8.0_71 (latest)</p>
  
  <p>git     v 2.7.0 (latest)</p>
  
  <p>ionic   v 1.7.14 (latest)</p>
  
  <p>corodva v 6.0.0 (latest)</p>
  
  <p>here is my env variable looks like:
  ANT_HOME,JAVA_HOME,ANDROID_HOME variable
  <a href="https://i.stack.imgur.com/SzPTG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SzPTG.png" alt="enter image description here"></a></p>
  
  <p>my PATH variable
  <a href="https://i.stack.imgur.com/V6x0E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6x0E.png" alt="enter image description here"></a></p>
  
  <p>im running on windows 10 64bit, but i keep getting errors both from ionic build and cordova build, here are the log of the error (i get the same build error with cordova ):</p>
  
  <pre><code>ionic build
  Running command: "C:\Program Files\nodejs\node.exe" C:\work\boaz\myapp\hooks\after_prepare\010_add_platform_class.js C:\work\boaz\myapp
  add to body class: platform-android
  add to body class: platform-ios
  ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
  JAVA_HOME=C:\Program Files\Java\jdk1.8.0_65
  Unzipping C:\Users\boaz\.gradle\wrapper\dists\gradle-2.2.1-all\2m8005s69iu8v0oiejfej094b\gradle-2.2.1-all.zip to C:\Users\boaz\.gradle\wrapper\dists\gradle-2.2.1-all\2m8005s69iu8v0oiejfej094bException in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
          at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
          at org.gradle.wrapper.Install.createDist(Install.java:47)
          at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
          at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
  Caused by: java.util.zip.ZipException: error in opening zip file
          at java.util.zip.ZipFile.open(Native Method)
          at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:219)
          at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:149)
          at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:163)
          at org.gradle.wrapper.Install.unzip(Install.java:160)
          at org.gradle.wrapper.Install.access$400(Install.java:29)
          at org.gradle.wrapper.Install$1.call(Install.java:70)
          at org.gradle.wrapper.Install$1.call(Install.java:47)
          at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
          ... 3 more
  
  ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"C:\work\boaz\myapp\platforms\android\gradlew cdvBuildDebug -b C:\work\boaz\myapp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
  You may not have the required environment or OS to build this project
  Error: Error code 1 for command: cmd with args: /s,/c,"C:\work\boaz\myapp\platforms\android\gradlew cdvBuildDebug -b C:\work\boaz\myapp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
  </code></pre>