This is occurring in Android Studio during "gradlew build".
Error: "Error occurred during initialization of VM Could not reserve enough space for 3174400KB object heap" (3.18GB)
I've tried -Xmx and the object heap has always expanded to surpass. My 32 bit software can't go much further.
"org.gradle.jvmargs=-XX:MaxHeapSize=4000m -Xmx4000m" was added to the gradle properties file.
The project folder itself only takes up 1.1GB so I'm confused as to how this is even possible.
Update: This issue seems to have resolved itself.