ionic build android 出错
发布于 1年前 作者 imkiven 1922 次浏览 来自 问答

E:\Workspaces\Android\CNCC>ionic build android Running command: D:\nodejs\node.exe E:\Workspaces\Android\CNCC\hooks\after_prepare\010_add_platform_class.js E:\Workspaces\Android\CNCC add to body class: platform-android Running command: cmd "/s /c “E:\Workspaces\Android\CNCC\platforms\android\cordova\build.bat"” ANDROID_HOME=D:\android22\sdk JAVA_HOME=D:\Java\jdk1.7.0_06 Running: E:\Workspaces\Android\CNCC\platforms\android\gradlew cdvBuildDebug -b E:\Workspaces\Android\CNCC\platforms\android\build.gradle -Dorg.gradle.daemon=true

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 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.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

E:\Workspaces\Android\CNCC\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s /c “E:\Workspaces\Android\CNCC\platforms\android\gradlew cdvBuildDebug -b E:\Workspaces\Android\CNCC\platforms\android\build.gradle -Dorg.gradle.daemon=true” ERROR building one of the platforms: Error: cmd: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: cmd: Command failed with exit code 1 at ChildProcess.whenDone (C:\Users\JinWu\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5)