Android Libgdx Could not reserve enough space for 1536000KB object heap

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


在这里输入图像描述

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


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

Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

Give a Restart to your System.

链接地址: http://www.djcxy.com/p/82958.html

上一篇: 错误:无法创建Java虚拟机Mac OSX Mavericks

下一篇: Android Libgdx无法为1536000KB对象堆预留足够的空间