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/5.1.1/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
问题出现原因:电脑内存不足
解决方法:打开项目根目录的gradle.properties,将其中的
org.gradle.jvmargs=-Xmx1536m
改为:
org.gradle.jvmargs=-Xmx512m
这个512并非适用所有人,可以适当增加或降低,根据个人情况来更改,比如可以改成256或者1024等