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…

Subscribe my newsletter to get weekly updates. — https://infinitbility.com/about