FAILURE:构建失败,出现异常。离子

奥纳德

我正在尝试构建一个 IONIC 项目,但我正面临这个异常,我无法为此调试解决方案。我尝试了很多建议,但没有解决方案。我正在等待您的帮助

    1-ionic start test4 tabs
    2-cd test4
    3-ionic platform add android
    4-ionic build android

错误

       C:\Users\onurr\test4>ionic build android
       Running command: "C:\Program Files\nodejs\node.exe"  
       C:\Users\onurr\test4\hooks\after_prepare\010_add_platform_class.js       
       C:\Users\onurr\test4   

        add to body class: platform-android

        ANDROID_HOME=C:\Users\onurr\AppData\Local\Android\sdk

        JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_112

        Subproject Path: CordovaLib

       Starting a new Gradle Daemon for this build (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.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.
Prashant Ghimire

我假设您正在使用 Windows 查看堆栈跟踪。

请注意堆栈跟踪中的此消息:

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

这通常发生在您拥有 32 位 JVM 时。如果您的操作系统是 64 位,请将 32 位 JVM 替换为 64 位 JVM。它具有更高的堆约束,将解决问题。这是推荐的解决方案。

阅读此oracle 文档以获取更多信息。

如果您的操作系统是 32 位,请尝试按以下方式设置您的操作系统并重新ionic build android发出命令(可能需要重新启动命令提示符):

转到StartControl PanelSystemAdvanced System SettingsAdvanced (tab)Environment VariablesSystem VariablesNew

Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

离子 | FAILURE:构建失败,出现异常

来自分类Dev

Lint - FAILURE:构建失败,出现异常

来自分类Dev

TransmogrifAI : FAILURE: 构建失败,出现异常

来自分类Dev

构建失败,出现异常

来自分类Dev

失败:构建失败并出现异常。

来自分类Dev

FLUTTER项目错误:失败:构建失败,出现异常

来自分类Dev

react-native:构建失败,出现异常

来自分类Dev

Android应用无法构建-出现异常失败

来自分类Dev

失败:构建失败,出现异常,配置根项目“ android”时出现问题

来自分类Dev

Android Studio构建失败,出现异常任务':app:dexDebug'的执行失败

来自分类Dev

从组创建团队失败,出现异常

来自分类Dev

Getmethod调用失败,出现异常

来自分类Dev

包含 firebase 和 gms 服务时,Android gradle 构建失败并出现异常

来自分类Dev

使用Cordova构建Android平台时出现异常

来自分类Dev

使用Cordova构建Android平台时出现异常

来自分类Dev

TFS 2015上载构建任务时出现异常

来自分类Dev

运行构建的 jar 时出现异常:JavaFX

来自分类Dev

我正在尝试构建 url 但出现异常

来自分类Dev

Apache phoenix并发查询失败,出现异常

来自分类Dev

当我尝试构建APK时,调试控制台中将显示以下内容。生成:生成失败,出现异常

来自分类Dev

Robolectric:构建失败,出现空指针异常

来自分类Dev

构建失败,出现Kotlin中的异常错误

来自分类Dev

Robolectric:构建失败,出现空指针异常

来自分类Dev

在布局中定义的Android EditText onClick侦听器失败,出现异常的异常

来自分类Dev

Mockito期望出现异常

来自分类Dev

离子构建transformClassesWithDexForDebug失败

来自分类Dev

构建失败的离子 2

来自分类Dev

失败:构建失败,并出现以下异常:React Native

来自分类Dev

Twitter查询失败,出现异常“找不到方法'HttpClientHandler.set_AutomaticDecompression'”

Related 相关文章

  1. 1

    离子 | FAILURE:构建失败,出现异常

  2. 2

    Lint - FAILURE:构建失败,出现异常

  3. 3

    TransmogrifAI : FAILURE: 构建失败,出现异常

  4. 4

    构建失败,出现异常

  5. 5

    失败:构建失败并出现异常。

  6. 6

    FLUTTER项目错误:失败:构建失败,出现异常

  7. 7

    react-native:构建失败,出现异常

  8. 8

    Android应用无法构建-出现异常失败

  9. 9

    失败:构建失败,出现异常,配置根项目“ android”时出现问题

  10. 10

    Android Studio构建失败,出现异常任务':app:dexDebug'的执行失败

  11. 11

    从组创建团队失败,出现异常

  12. 12

    Getmethod调用失败,出现异常

  13. 13

    包含 firebase 和 gms 服务时,Android gradle 构建失败并出现异常

  14. 14

    使用Cordova构建Android平台时出现异常

  15. 15

    使用Cordova构建Android平台时出现异常

  16. 16

    TFS 2015上载构建任务时出现异常

  17. 17

    运行构建的 jar 时出现异常:JavaFX

  18. 18

    我正在尝试构建 url 但出现异常

  19. 19

    Apache phoenix并发查询失败,出现异常

  20. 20

    当我尝试构建APK时,调试控制台中将显示以下内容。生成:生成失败,出现异常

  21. 21

    Robolectric:构建失败,出现空指针异常

  22. 22

    构建失败,出现Kotlin中的异常错误

  23. 23

    Robolectric:构建失败,出现空指针异常

  24. 24

    在布局中定义的Android EditText onClick侦听器失败,出现异常的异常

  25. 25

    Mockito期望出现异常

  26. 26

    离子构建transformClassesWithDexForDebug失败

  27. 27

    构建失败的离子 2

  28. 28

    失败:构建失败,并出现以下异常:React Native

  29. 29

    Twitter查询失败,出现异常“找不到方法'HttpClientHandler.set_AutomaticDecompression'”

热门标签

归档