title: ionic cordova build android error nuillpoijtexception
body: <p>When I run <code>cordova build android</code> I had error. </p>
  
  <pre><code>exit /b 1 Command finished with error code 1:\platforms\android\gradlew cdvBuildDebug,-b,myprodplatforms\android\build.gradle myprodplatforms\android\gradlew: Command failed with exit code 1 Error output: Exception in thread "main" java.lang.NullPointerException
          at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
          at 
  org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
          at org.gradle.wrapper.Install.createDist(Install.java:44)
          at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
          at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63) Error: myprodplatforms\android\gradlew: Command failed with exit code 1 Error output: Exception in thread "main" java.lang.NullPointerException
          at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
          at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
          at org.gradle.wrapper.Install.createDist(Install.java:44)
          at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
          at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)
      at ChildProcess.whenDone (myprodnode_modules\cordova-common\src\superspawn.js:135:23)
      at ChildProcess.emit (events.js:210:5)
      at ChildProcess.cp.emit (myprodnode_modules\cross-spawn\lib\enoent.js:34:29)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) [ERROR] An error occurred while running subprocess cordova.
  
          cordova.cmd build android --verbose exited with exit code 1.
  
          Re-running this command with the --verbose flag may provide more information.
  </code></pre>
  
  <p><strong>I tried to remove and add android remove node modules</strong>, <strong>I updated node module to latest version .</strong></p>
  
  <p>Can someone give me idea how to solved error.</p>