「已注销」 2022-02-12 11:56
浏览 160
已结题

QT 5.15 Android无法编译

直接运行报错信息

11:49:23: The process "C:\Qt5.15\5.15.2\android\bin\androiddeployqt.exe" exited with code 255.
11:49:23: Installing the app failed with an unknown error.

编译设备里面没有Android

img

  • 但是我已经安装了Android的QT库(反复安装了几次)。

构建报错信息:

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 Manual chapter on the daemon at https://docs.gradle.org/5.6.4/userguide/gradle_daemon.html
Process command line: C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe -Xmx2048m -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\Administrator\.gradle\wrapper\dists\gradle-5.6.4-bin\bxirm19lnfz6nurbatndyydux\gradle-5.6.4\lib\gradle-launcher-5.6.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.6.4
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. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Building the android package failed!
  -- For more information, run this command with --verbose.
11:46:37: 进程"C:\Qt5.15\5.15.2\android\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project test3 (kit: Android Qt 5.15.2 Clang Multi-Abi)
When executing step "Build Android APK"
11:46:37: Elapsed time: 00:28.
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 2月20日
    • 修改了问题 2月12日
    • 创建了问题 2月12日

    悬赏问题

    • ¥20 limma多组间分析最终p值只有一个
    • ¥15 nopCommerce开发问题
    • ¥15 torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with signal SIGKILL
    • ¥15 QuartusⅡ15.0编译项目后,output_files中的.jdi、.sld、.sof不更新怎么解决
    • ¥15 pycharm输出和导师的一样,但是标红
    • ¥15 想问问富文本拿到的html怎么转成docx的
    • ¥15 我看了您的文章,遇到了个问题。
    • ¥15 GitHubssh虚拟机连接不上
    • ¥15 装完kali之后下载Google输入法 重启电脑后出现以下状况 且退不出去 桌面消失 反复重启没用
    • ¥15 ESP-IDP-BLE配网连接wifi