我正在研究离子应用。我在尝试为Android构建时遇到错误。
FAILURE: Build failed with an exception.
* What went wrong:
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.2.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 object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
答案 0 :(得分:0)
Error occurred during initialization of VM
Could not reserve enough space for object heap
从消息中看,它似乎是由使用gradle构建离子项目时的JVM堆空间引起的,请尝试在Java中增加堆大小
Windows系统的简单步骤:
使用以下参数在本地环境中配置GRADLE_OPTS或JAVA_OPTS
-Xms512m -Xmx512m -XX:PermSize = 256m -XX:MaxPermSize = 512m
(如果您使用的是JDK8,则会忽略PermSize。)