title: Apache Cordova: Build failed Error code 1 and Javascript Exception
body: <p>I am making a little Android-Application with Apache Cordova. Everything was fine until the builds started crashing. As another thread here suggested, I reinstalled the Apache Cordova Plugin I am using (media). At MSDN someone found help by deleting C:/Users/MyName/.gradle and turn off the Firewall, so java will download some stuff again. There I got a failure after the download:</p>
  
  <pre><code>......
      :compileDebugRenderscript UP-TO-DATE
  1&gt;  :generateDebugBuildConfig UP-TO-DATE
  1&gt;  :generateDebugAssets UP-TO-DATE
  1&gt;  :mergeDebugAssets FAILED
  1&gt;
  1&gt;  FAILURE: Build failed with an exception.
  1&gt;
  1&gt;  * What went wrong:
  1&gt;  Execution failed for task ':mergeDebugAssets'.
  1&gt;  &gt; java.lang.NullPointerException (no error message)
  1&gt;
  1&gt;  * Try:
  1&gt;  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  1&gt;
  1&gt;  BUILD FAILED
  1&gt;
  1&gt;  Total time: 3 mins 11.981 secs
  1&gt;  Picked up _JAVA_OPTIONS: -Xmx512M
  1&gt;
  1&gt;  C:\Users\Paul\Documents\Visual Studio 2015\Projects\LifePointCounter\LifePointCounter\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:\Users\Paul\Documents\Visual Studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\gradlew" cdvBuildDebug -b "C:\Users\Paul\Documents\Visual Studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\build.gradle" -Dorg.gradle.daemon=true"
  1&gt;  Command finished with error code 1: cmd /s /c ""C:\Users\Paul\documents\visual studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\cordova\build.bat" --debug "--buildConfig=C:\Users\Paul\documents\visual studio 2015\Projects\LifePointCounter\LifePointCounter\build.json""
  1&gt;ERROR building one of the platforms : error : cmd: Command failed with exit code 1
  1&gt;  You may not have the required environment or OS to build this project
  1&gt;MDAVSCLI : error : cmd: Command failed with exit code 1
  </code></pre>
  
  <p>The last things I did before this error came up were:</p>
  
  <ul>
  <li>changing some resource audio files (afterwards playing them gave errors in runtime)</li>
  <li>uninstall my App on my device (to reinstall it by build)</li>
  </ul>
  
  <p>I have no idea what's going on there and I am not very exceperienced with that.</p>
  
  <p>EDIT:</p>
  
  <p>Another Thread suggested Node.js to Version 0.10.36
  Now I get exit code 8 and only one error >.&lt;</p>