您的位置:首页 > 移动开发 > Objective-C

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐