After upgrading to RN 0.60 - try to run the command:
react-native run-android --variant=release
Failed with error:
Execution failed for task ':app:packageRelease'. 2 exceptions were raised by workers: java.io.UncheckedIOException: java.io.IOException: Execution of compression failed. java.lang.OutOfMemoryError
The solution for me was:
android { dexOptions { javaMaxHeapSize "4g" } }
org.gradle.jvmargs=-Xmx4608M
This solution worked for me.
android { ... dexOptions { javaMaxHeapSize "2g" } ... }
org.gradle.jvmargs=-Xmx4608M
The way I solved this issue was
android { ... dexOptions { javaMaxHeapSize "4g" } ... }
org.gradle.jvmargs=-Xmx4608m
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With