gpt4 book ai didi

android - QtCreator 甚至无法构建空项目 - 执行此行时发生以下错误

转载 作者:行者123 更新时间:2023-11-30 03:47:36 28 4
gpt4 key购买 nike

我刚刚使用 tutorial on Qt website 安装的 Qt creator 出现了一些非常无用的错误.

-dex:      [dex] input: D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\bin\classes      [dex] input: D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\libs\QtAndroid-bundled.jar      [dex] input: D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\libs\QtAndroidAccessibility-bundled.jar      [dex] Pre-Dexing D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\libs\QtAndroid-bundled.jar -> QtAndroid-bundled-15710ac48ee3b8e0790e2c0724eced85.jar       [dx] Error occurred during initialization of VM       [dx] Could not reserve enough space for object heap       [dx] Error: Could not create the Java Virtual Machine.       [dx] Error: A fatal exception has occurred. Program will exit.BUILD FAILEDC:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:283: null returned: 1Total time: 1 secondBuilding the android package failed!  -- For more information, run this command with --verbose.11:50:50: The process "C:\Qt\android.5.5.1\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.Error while building/deploying project androidtest (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.1))When executing step "Build Android APK"11:50:50: Elapsed time: 00:05.

我不太明白这是什么意思。这是我的配置:

image description

我还尝试选择使用 Gradle 而不是 Ant。它没有影响任何东西。最让我吃惊的是尴尬的错误:执行此行时发生以下错误: 没有提及任何实际错误。

最佳答案

修复方法如下:

Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M



Variable name: Path
Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin;
Change this to your appropriate path.

关于android - QtCreator 甚至无法构建空项目 - 执行此行时发生以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33607670/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com