Hi folks,
Here’s a quick tip on how to fix error java.lang.OutOfMemoryError: Java heap space when working with Android Studio.
Open gradle.properties,
find org.gradle.jvmargs
set -Xmx property to something bigger, e.g.
if you had -Xmx1500m, you can change it to -Xmx3000m
This way JVM uses max heap size of 3000MB
That’s all for now.
Happy coding.