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/2.14.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
问题。
在网上查了查。
解决的办法是:
在你的project中的gradle下gradle.properties文件中
将org.gradle.jvmargs=-Xmx512m等号右边的值改为-Xmx512m或者删除就好了
然后重新build就好了。具体出现这个问题的原因是gradle的问题。
mac 修改方案
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8