android - Ionic Android 构建失败 : Unable to start the daemon process

标签 android cordova gradle ionic-framework jvm

当我运行 ionic build android --release 我得到一个错误

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

有人知道怎么解决吗? enter image description here

最佳答案

我通过添加一个新的系统变量 name : _JAVA_OPTIONSvalue : -Xmx512M 得到了解决方案

关于android - Ionic Android 构建失败 : Unable to start the daemon process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40385165/

相关文章:

android - 自定义 ListView setOnItemClickListener

android - 使用 Eclipse Helios 的 Linux 上的 Android SDK 问题

java - 使用 StringBuilder 输入源?

带有 Fragments 的 Android espresso。 getActivity 返回 NULL

android - java.util.zip.ZipException : duplicate entry: com/google/firebase/iid/zzb. 类

javascript - 在 HTML 中为不同设备分辨率更改字体大小的最佳方法

javascript - 与桌面浏览器兼容的 HTML5 移动框架

javascript - Phonegap 插件无法正常工作(cordova-plugin-purchase)

java - 找不到类文件

android - Gradle 命令行 : failed to find target android-22