title: How to solve the ionic build error "java heap space"?
body: <p>I have a ionic project. The app was build and run in my android phone successfully before. But suddenly from someday, when I run command "ionic cordova run android" I get the build error as below:</p>
  
  <blockquote>
    <p>Execution failed for task ':transformClassesWithDexForDebug'.
    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space</p>
  </blockquote>
  
  <p>I have tried "cordova clean" to synchronise the cordova plugin. But it doesn't work..</p>
  
  <p>How to solve this problem?</p>