Qt for Android 程序编译报错

环境

系统:Ubuntu

Qt 版本:Qt5.15.2

JDK版本:jdk-17.0.9

 

编译错误说明

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

错误信息:

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"

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

相关推荐

  1. ubuntu 编译内核

    2023-12-18 09:26:02       32 阅读
  2. php8编译

    2023-12-18 09:26:02       10 阅读
  3. 51单片机编译没有,但是下载后程序不更新

    2023-12-18 09:26:02       33 阅读
  4. 编译时AndroidX冲突

    2023-12-18 09:26:02       33 阅读
  5. uniapp 小程序运行plus...

    2023-12-18 09:26:02       8 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-18 09:26:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-18 09:26:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-18 09:26:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-18 09:26:02       18 阅读

热门阅读

  1. IDEA中如何使用Vue

    2023-12-18 09:26:02       38 阅读
  2. 全志V3s之NFS连接ubuntu22.04

    2023-12-18 09:26:02       39 阅读
  3. conda channel的镜像设置

    2023-12-18 09:26:02       32 阅读
  4. 力扣面试150题 | 15.三数之和

    2023-12-18 09:26:02       38 阅读
  5. Spring-整合MyBatis

    2023-12-18 09:26:02       33 阅读
  6. Cmake基础(6)

    2023-12-18 09:26:02       32 阅读
  7. Kubernetes 容器编排(3)

    2023-12-18 09:26:02       29 阅读
  8. python 读取execl 日期是数字或者字符串的处理

    2023-12-18 09:26:02       41 阅读
  9. 【机器学习】数据降维

    2023-12-18 09:26:02       48 阅读
  10. 机器学习scikit-learn实现

    2023-12-18 09:26:02       34 阅读
  11. xgboost机器学习算法通俗理解

    2023-12-18 09:26:02       35 阅读
  12. 使用AppleScript自动滚动预览

    2023-12-18 09:26:02       35 阅读
  13. 82. Remove Duplicates from Sorted List II

    2023-12-18 09:26:02       47 阅读