Expiring Daemon because JVM heap space is exhausted In React Native

You are seeing multiple times ‘Daemon will be stopped at the end of the build after running out of JVM memory’ and ‘Expiring Daemon because JVM heap space is exhausted’ then you need to improve your JVM heap memory.

Follow the below steps and crack your error

Solution 1

Step 1: Increase Your Heap Size

Add dexOptions in your android/app/build.gradle

Solution move to infinitbility platform click below link to access

Solution 2

Step 1: Add below properties on your gradle.properties

Dir -Project\android\gradle.properties

Solution move to infinitbility platform click below link to access

Please clap and share posts on your social networks…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store