title: Ionic - Build Failed - Unable to start the daemon process
body: <p>I created an app with Ionic but when trying to build it I get this error:</p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
  </blockquote>
  
  <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/2.14.1/userguide/gradle_daemon.html" rel="nofollow noreferrer">https://docs.gradle.org/2.14.1/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 2097152KB 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.</li>
  </ul>
  
  <p>Error: cmd: Command failed with exit code 1 Error output:
  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/2.14.1/userguide/gradle_daemon.html" rel="nofollow noreferrer">https://docs.gradle.org/2.14.1/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 2097152KB 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.</li>
  </ul>
  
  <p>What is it that I am doing wrong? How can I change those settings?</p>