2
votes

For the first time I am using Libgdx.

I can download and unzip finished. But error occured

Unable to start daemon process

Error occurred during initialization of VM Could not reserve enough space for 1536000KB object heap


enter image description here

In Android studio I got same problem. But I can Change it by

gradle.properties----> org.gradle.jvmargs=-Xmx512m

Then it works fine. But in libgdx, I don't know

1

1 Answers

3
votes

Set a System Variables in your Environment Variables of your System.

Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

Give a Restart to your System.