无法启动守护程序进程,守护程序的配置不正确

时间:2018-06-18 16:18:06

标签: android-studio gradle daemon

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 
https://docs.gradle.org/4.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 1572864KB object heap

我该如何解决这个问题?我不知道如何遵循这些说明。这是我第一次这样做。在另一个类似的问题中,它说删除文件,但我没有在指定位置使用此文件。

1 个答案:

答案 0 :(得分:1)

将gradle.properties Xmx值更改为Xmx1024m(小于原来的1538或更小)并且它有效!