I am getting below error while building a phonegap android application. Using the command çordova build android --release to build. I have the latest gradle installed. I have added org.gradle.jvmargs=-Xmx512m in gradle.proprties file (also tried other values like 1024m,2048m,4096m etc) and_JAVA_OPTIONS has been set as -Xms128m in environment variables. But, no hope. Could anyone please help me on this?
Below are my system configurations:
OS and java - 32 bit
java version - 8
Moving to regular PhoneGap forum, since this is unrelated to the PhoneGap Build service.
What do your machine specifications look like? Also, what's in your environment settings? (the output of "set")
Thanks for the quick response!
I have resolved the first issue by doing below changes
Added below two system variables under environment variables :
_JAVA_OPTIONS with value -Xmx512m
GRADLE_OPTS with value -Dorg.gradle.jvmargs=-Xmx1g
Added below line in gradle.properties file