繁体   English   中英

科尔多瓦建立Android-失败

[英]cordova build android - failed

当我尝试在ionic框架v1上运行cordova build android命令时,遇到以下错误。 请帮我

$离子科尔多瓦建立Android

离子科尔多瓦准备√科尔多瓦准备-完成! 运行命令:“ C:\\ Program Files \\ nodejs \\ node.exe” C:\\ mobileproject \\ DatasoftwareApp \\ hooks \\ after_prepare \\ 010_add_platform_class.js C:\\ mobileproject \\ Data softwareApp添加到主体类:platform-android×cordova build android-失败! [错误]运行cordova build android(退出代码1)时发生错误:

    Running command: "C:\Program Files\nodejs\node.exe" C:\mobileproject\Dat                         aRecoverysoftwareApp\hooks\after_prepare\010_add_platform_class.js C:\mobileproj                         ect\DataRecoverysoftwareApp
    add to body class: platform-android
    ANDROID_HOME=C:\Users\amit.joshi\AppData\Local\Android\sdk
    JAVA_HOME=C:\Program Files (x86)\java\jdk1.8.0_151
    Subproject Path: CordovaLib
    Starting a Gradle Daemon (subsequent builds will be faster)

    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.gra                         dle.org/3.3/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.gra                         dle.org/3.3/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.

VM初始化期间发生错误

无法为2097152KB对象堆保留足够的空间

看起来无法分配空间。 您是否有机会使用32位Java版本? 如果是,请尝试64位。

你没记忆了吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM