Qt for Android 程序编译报错

环境

系统:Ubuntu

Qt 版本:Qt5.15.2

JDK版本:jdk-17.0.9

编译错误说明

Qt 创建了一个简单的界面程序,编辑就错误了.

错误信息:

css 复制代码
Generating Android Package
  Input file: /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-androidTest-deployment-settings.json
  Output directory: /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-build/
  Application binary: androidTest
  Android build platform: android-30
  Install to device: No

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
> Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]

* 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 1s
  -- Skipping /home/xuguijun/Qt/5.15.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
  -- Skipping /home/xuguijun/Qt/5.15.2/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
Skipping createRCC
Building the android package failed!
  -- For more information, run this command with --verbose.
15:13:04: 进程"/home/xuguijun/Qt/5.15.2/android/bin/androiddeployqt"退出,退出代码 14 。
Error while building/deploying project androidTest (kit: Android Qt 5.15.2 Clang Multi-Abi)
The kit Android Qt 5.15.2 Clang Multi-Abi has configuration issues which might be the root cause for this problem.
When executing step "Build Android APK"

各位路过的猿友不知有没有遇到过这种问题,该如果解决????

相关推荐
liangbm34 分钟前
MATLAB系列05:自定义函数
开发语言·笔记·matlab·教程·函数·自定义函数·按值传递
计算机学姐4 分钟前
基于PHP的电脑线上销售系统
开发语言·vscode·后端·mysql·编辑器·php·phpstorm
三玖诶13 分钟前
如何在 Qt 的 QListWidget 中为某一行添加点击事件
开发语言·qt
InJre20 分钟前
QT widgets 窗口缩放,自适应窗口大小进行布局
开发语言·qt·ui
可愛小吉23 分钟前
Python 课程10-单元测试
开发语言·python·单元测试·tdd·unittest
五味香35 分钟前
C++学习,动态内存
java·c语言·开发语言·jvm·c++·学习·算法
无名之逆36 分钟前
计算机专业的就业方向
java·开发语言·c++·人工智能·git·考研·面试
爱棋笑谦42 分钟前
二叉树计算
java·开发语言·数据结构·算法·华为od·面试
编程乐学1 小时前
基于Android Studio 蜜雪冰城(奶茶饮品点餐)—原创
android·gitee·android studio·大作业·安卓课设·奶茶点餐
翔云API1 小时前
人证合一接口:智能化身份认证的最佳选择
大数据·开发语言·node.js·ocr·php