title: Error : Unable to start the daemon process using android application(ionic,cordova and java application)with gradle error
body: <p>ANDROID_HOME=C:\Users\manish\AppData\Local\Android\sdk
  JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_121
  Subproject Path: CordovaLib
  To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: <a href="https://docs.gradle.org/3.3/userguide/gradle_daemon.html" rel="nofollow noreferrer">https://docs.gradle.org/3.3/userguide/gradle_daemon.html</a>.</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li>What went wrong:
  Unable to start the daemon process.
  This problem might be caused by incorrect configuration of the daemon.
  For example, an unrecognized jvm option is used.
  Please refer to the user guide chapter on the daemon at <a href="https://docs.gradle.org/3.3/userguide/gradle_daemon.html" rel="nofollow noreferrer">https://docs.gradle.org/3.3/userguide/gradle_daemon.html</a>
  
  <h2>Please read the following process output to find out more:</h2></li>
  </ul>
  
  <p>Error occurred during initialization of VM
  Could not reserve enough space for 1572864KB object heap</p>
  
  <ul>
  <li>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  (node:4316) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
  FAILURE: Build failed with an exception.</li>
  </ul>