title: Execution failed for task ':app:multiDexListDebug'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
body: <p>I'm new to react native . when I run the react native via physical I got this error . And I tired to cleaned gradle and clean the npm still same error.</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:multiDexListDebug'.
  &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
     &gt; Java heap space
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 4m 37s
  </code></pre>
  <p>what's going wrong with is.</p>