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"

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

相关推荐
炯哈哈4 分钟前
【上位机——WPF】App.xml和Application类简介
xml·开发语言·c#·wpf·上位机
未来之窗软件服务4 分钟前
Cacti 未经身份验证SQL注入漏洞
android·数据库·sql·服务器安全
LallanaLee4 分钟前
常见面试题
java·开发语言
BXCQ_xuan7 分钟前
handsome主题美化及优化:10.1.0最新版 - 2
android
酷炫码神9 分钟前
C#运算符
开发语言·c#
圈圈编码12 分钟前
MVVM框架
android·学习·kotlin
小秋学嵌入式-不读研版13 分钟前
C42-作业练习
c语言·开发语言·笔记
凯雀安全18 分钟前
printspoofer的RPC调用接口的简单代码
qt·网络协议·rpc
休息一下接着来20 分钟前
C++ 条件变量与线程通知机制:std::condition_variable
开发语言·c++·算法
小哈里39 分钟前
【pypi镜像源】使用devpi实现python镜像源代理(缓存加速,私有仓库,版本控制)
开发语言·python·缓存·镜像源·pypi