Qt 编译 apk时,build出现错误,退出代码14,如何解决?

SJIU 2024-05-17 14:39:53

FAILURE: Build failed with an exception.

 

* What went wrong:

Could not determine the dependencies of task ':compileDebugJavaWithJavac'.

> Failed to install the following Android SDK packages as some licences have not been accepted.

platforms;android-22 Android SDK Platform 22

build-tools;28.0.3 Android SDK Build-Tools 28.0.3

To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.

Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

 

Using Android SDK: E:\Qt\QtForAndroid\android-sdk-windows

 

* 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 8s

Warning: Android platform 'android-22' does not exist in SDK.

Building the android package failed!

-- For more information, run this command with --verbose.

11:19:27: 进程"E:\Qt_creator\5.14.2\android\bin\androiddeployqt.exe"退出,退出代码 14 。

Error while building/deploying project 06_project_Android (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))

When executing step "Build Android APK"

 

...全文
2619 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

16,690

社区成员

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

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