how to statically set java heap size in android studio code example Example: android studio heap size problem org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m