Expiring Daemon because JVM heap space is exhausted React Native Expiring Daemon because JVM heap space is exhausted Daemon will be stopped at the end of the build after running out of JVM memory Expiring Daemon because JVM heap space is exhausted Expiring Daemon because JVM heap space is exhausted > Task :app:transformDexArchiveWithExternalLibsDexMergerForRelease FAILED FAILURE: Build failed with an exception. Add Line into gradle.properties org.gradle.daemon=true org.gradle.configureondemand=true org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 Add Line into app/build.gradle android { ... dexOptions { javaMaxHeapSize "3g" } ... } Then try again, compile again, it should be work :D