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"

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

相关推荐
不吃凉粉15 分钟前
android 副屏连接
android
“AI国潮设计-小江”24 分钟前
AIGC实战:Python+SDXL批量生成英歌舞IP立牌,解锁猪猪蛋糕“反差萌”流量密码(附完整API源码)
开发语言·人工智能·python·prompt·aigc
H.莓飛34 分钟前
【数据结构】排序_OJ题(二):划分与选择
linux·服务器·c语言·开发语言·数据结构·visual studio
CRMEB系统商城42 分钟前
服装连锁的导购分销与企微私域
java·大数据·开发语言·人工智能·小程序·php·1024程序员节
凉茶钱1 小时前
stack、queue、priority_queue、容器适配器完整梳理
开发语言·c++·queue·1024程序员节·stack
云和数据.ChenGuang1 小时前
Python 菜鸟入门:字典(dict)类型详解与 CRUD 实战案例
开发语言·人工智能·python
攻城狮Soar1 小时前
详解volatile
开发语言·c++·1024程序员节
小羊没烦恼!1 小时前
.NET无侵入自动化探针原理和主流实现
运维·开发语言·javascript·python·自动化·.net·1024程序员节
ch.ju2 小时前
Java——idea知识:Collection父接口
java·开发语言·intellij-idea
OxYGC2 小时前
手机为什么能“自动跳过“开屏广告?李跳跳、GKD 与 iOS 代理软件原理盘点
android·ios·开屏广告·广告屏蔽