波塞冬~ 2023-12-14 11:22 采纳率: 50%
浏览 6
已结题

(赏)Linux Qt5.15 Android配置成功,项目编译出错

配置完Linux+Qt5.15.2+Android环境,使用JDK17,其他JDK版本1.8、11、21版本都没办法成功配置SDK,新建项目,编译不通过,神仙帮忙看下,能解决的直接打赏,不用跟别人平分。

/home/xuguijun/Qt/5.15.2/android/bin/qmake -install qinstall -exe libandroidTest_armeabi-v7a.so /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Release/android-build/libs/armeabi-v7a/libandroidTest_armeabi-v7a.so
16:10:46: 进程"/home/xuguijun/Android/Sdk/ndk/21.3.6528147/prebuilt/linux-x86_64/bin/make"正常退出。
16:10:46: Starting: "/home/xuguijun/Qt/5.15.2/android/bin/androiddeployqt" --input /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Release/android-androidTest-deployment-settings.json --output /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Release/android-build --android-platform android-30 --jdk /home/xuguijun/jdk-17.0.9 --gradle
Generating Android Package
  Input file: /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Release/android-androidTest-deployment-settings.json
  Output directory: /home/xuguijun/Desktop/build-androidTest-Android_Qt_5_15_2_Clang_Multi_Abi-Release/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 981ms
Building the android package failed!
  -- For more information, run this command with --verbose.
  -- 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
16:10:48: 进程"/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"

img

img

img

img

img

  • 写回答

1条回答 默认 最新

  • IT工程师_二师兄 2023-12-14 15:58
    关注

    你把报错信息复制到记事本发给我

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月20日
  • 修改了问题 12月14日
  • 修改了问题 12月14日
  • 修改了问题 12月14日
  • 展开全部

悬赏问题

  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊