title: Cordova - Error code 1 for command | Command failed for
body: <p>I'm new on cordova, so if my question is not relevant, forgive me.
  i have a cordova project in my Windows 7 x64 machine.
  Yesterday i was build my cordova app via <code>cordova build android --release</code>.
  But i need to add new plugin <code>cordova-plugin-zip</code> to update my cordova project. 
  What i did to add this plugin to my cordova app;</p>
  
  <ul>
  <li>I installed a git application to my win7 x64 env.</li>
  <li><code>npm install -g git</code> i wrote this command on cmd.</li>
  <li>I Opened Windows Environment Variables/Path Window and added <code>;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd</code></li>
  <li>add plugin via this command <code>cordova plugin add https://github.com/apache/cordova-plugin-file.git</code></li>
  <li>then added other plugin <code>cordova plugin add https://github.com/MobileChromeApps/zip.git</code>
  <strong>(Everything fine till this step)</strong></li>
  <li>Then i run on cmd <code>cordova build android --release</code></li>
  </ul>
  
  <p>Unfourtunately it throws following error;</p>
  
  <blockquote>
    <p>BUILD FAILED C:\android\sdk\tools\ant\build.xml:720: The following
    error occurred while execu ting this line:
    C:\android\sdk\tools\ant\build.xml:734: Compile failed; see the
    compiler error o utput for details.</p>
    
    <p>Total time: 7 seconds</p>
    
    <p>C:\hascevher\platforms\android\cordova\node_modules\q\q.js:126
                        throw e;
                              ^ Error code 1 for command: cmd with args: /s,/c,ant,release,-f,C:\hascevher\platf
    orms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
    ERROR building one of the platforms: Error: cmd: Command failed with
    exit code 1</p>
    
    <p>You may not have the required environment or OS to build this project
    Error: cmd: Command failed with exit code 1
        at ChildProcess.whenDone (C:\Users\Hddn\AppData\Roaming\npm\node_modules\cor
    dova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
        at ChildProcess.emit (events.js:110:17)
        at maybeClose (child_process.js:1015:16)
        at Process.ChildProcess._handle.onexit (child_process.js:1087:5)</p>
  </blockquote>
  
  <p>When i try to create a new helloworld cordova project and adding android platform then from cmd <code>cordova build android</code> it creates sample app?</p>
  
  <p>So what is wrong with my other application?</p>
  
  <h2>Any help greatly appricated.</h2>
  
  <blockquote>
    <ul>
    <li>OS: Windows 7 x64</li>
    <li>Cordova v 5.1.1</li>
    <li>Ant version 1.9.4</li>
    </ul>
  </blockquote>
  
  <p>Plugins On Cordova Project:</p>
  
  <blockquote>
    <ul>
    <li>cordova-plugin-file</li>
    <li>cordova-plugin-zip</li>
    <li>org.apache.cordova.console</li>
    <li>org.apache.cordova.device</li>
    <li>org.apache.cordova.inappbrowser</li>
    </ul>
  </blockquote>
  
  <p>Full Windows Environment Variables/Path:</p>
  
  <blockquote>
    <p>C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common
    Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common
    Files\Microsoft Shared\Windows
    Live;%C_EM64T_REDIST11%bin\Intel64;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
    Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files
    (x86)\Windows Live\Shared;C:\Program Files
    (x86)\QuickTime\QTSystem\;C:\Program Files
    (x86)\Java\jdk1.7.0_75\bin;C:\cordova\apache-ant-1.9.4\bin;C:\android\sdk\tools;C:\android\sdk\platform-tools;C:\Program
    Files\nodejs\;C:\Program Files (x86)\Git\bin;C:\Program Files
    (x86)\Git\cmd</p>
  </blockquote>