在运行时出现以下报错:
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.6/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 1048576KB object heap
打开项目下的gradle.properties文件
加入:org.gradle.jvmargs=-Xmx512m 即可
(下图中最后一行)
之后运行通过