2 shaodan0730 shaodan0730 于 2016.09.08 16:21 提问

AndroidStudio创建项目出错 关于jvm内存的问题

之前报的问题是
Error:Unable to start the daemon process: could not reserve enough space for object heap.
Please assign more memory to Gradle in the project's gradle.properties file.
For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
org.gradle.jvmargs=-Xmx1024m
Read Gradle's configuration guide
Read about Java's heap size

我把当前project的gradle.properties中的
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
这句注释去掉了
结果出了以下错误,请问该如何修正

Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.4/userguide/gradle_daemon.html

Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0

1个回答

zqbnqsdsmd
zqbnqsdsmd   2016.11.14 23:44
Csdn user default icon
上传中...
上传图片
插入图片