QT 5.12 Android程序编译问题

庆儿 2019-05-07 05:39:51
我在建立Hello World中遇到问题,程序基本没有代码。
感觉出现错误和compileDebugAidl有关


:checkDebugClasspath
:preBuild UP-TO-DATE
:preDebugBuild
:compileDebugAidl FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugAidl'.
> java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process D:\Android\android-sdk\build-tools\29.0.0-rc2\aidl.exe with arguments {-pD:\Android\android-sdk\platforms\android-28\framework.aidl -oE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\build\generated\source\aidl\debug -IE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\src\debug\aidl -IE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\src -ID:\Qt\Qt5.12.2\5.12.2\android_x86\src\android\java\src -IE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\aidl -dC:\Users\admin\AppData\Local\Temp\aidl1458742573420267058.d D:\Qt\Qt5.12.2\5.12.2\android_x86\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}

* 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

BUILD FAILED in 19s
3 actionable tasks: 3 executed
Building the android package failed!
-- For more information, run this command with --verbose.
17:31:51: 进程"D:\Qt\Qt5.12.2\5.12.2\android_x86\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project untitled4 (kit: Android for x86 (Clang Qt 5.12.2 for Android x86))
When executing step "Build Android APK"
17:31:51: Elapsed time: 00:48.

环境:C:\Program Files\Java\jdk1.8.0_181 D:\Android\android-sdk D:\Android\android-sdk\ndk-bundle(Android Studio 下载),也是用了D:\Android\android-ndk-r19c,一样的结果。
...全文
535 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
哈哈gogo 2019-09-25
  • 打赏
  • 举报
回复
都用golang写了

16,216

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧