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"

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

相关推荐
数据小小爬虫5 分钟前
Python爬虫获取AliExpress商品详情
开发语言·爬虫·python
小爬虫程序猿6 分钟前
利用Python爬虫速卖通按关键字搜索AliExpress商品
开发语言·爬虫·python
一朵好运莲13 分钟前
React引入Echart水球图
开发语言·javascript·ecmascript
Eiceblue25 分钟前
使用Python获取PDF文本和图片的精确位置
开发语言·python·pdf
爱数学的程序猿32 分钟前
Python入门:6.深入解析Python中的序列
android·服务器·python
xianwu54334 分钟前
反向代理模块。开发
linux·开发语言·网络·c++·git
xiaocaibao77739 分钟前
Java语言的网络编程
开发语言·后端·golang
brhhh_sehe1 小时前
重生之我在异世界学编程之C语言:深入文件操作篇(下)
android·c语言·网络
zhangphil1 小时前
Android基于Path的addRoundRect,Canvas剪切clipPath简洁的圆形图实现,Kotlin(2)
android·kotlin
木向1 小时前
leetcode22:括号问题
开发语言·c++·leetcode