ionic 编译过程中报Could not reserve enough space for xxxxxxkb object heap
2017-04-03 08:28
597 查看
在新建立的ionic项目中在最后一步build 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 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 2097152KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
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 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 2097152KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
在我苦苦无法再国内找到答案的时候google半天只需要在环境变量里加一个
那就是:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M
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 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 2097152KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
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 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 2097152KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
在我苦苦无法再国内找到答案的时候google半天只需要在环境变量里加一个
那就是:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M
相关文章推荐
- tomcat Error occurred during initialization of VM Could not reserve enough space for ?KB object heap
- Loadrunner=Could not reserve enough space for object heap
- Could not reserve enough space for object heap
- 解决"Could not reserve enough space for object heap"
- Error:Unable to start the daemon process: could not reserve enough space for object heap.
- Android Studio Gradle Could not reserve enough space for object heap.
- Eclipse报错(”Could not reserve enough space for object heap”)
- 启动tomcat报错 Could not reserve enough space for object heap的解决办法
- 解决Tomcat Could not reserve enough space for object heap
- 解决tomcat"Could not reserve enough space for object heap"
- crontab 中ssh远程启动java程序报错 Could not reserve enough space for object heap
- ant build Error occurred during initialization of VM Could not reserve enough space for object heap
- Could not reserve enough space for object heap 异常处理
- 问题3-Error occurred during initialization of VM Could not reserve enough space for object heap
- android应用构建- Could not reserve enough space for object heap
- Error occurred during initialization of VM Could not reserve enough space for object heap
- 关于Myeclipse下的JVM启动异常的问题:Out Of Memery / Could not reserve enough space for object heap
- Android Studio Gradle Could not reserve enough space for object heap
- liferay service builder Could not reserve enough space for object heap
- fisheye Error occurred during initialization of VM Could not reserve enough space for object heap 问题解决!