Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Why I can not build the project for android?



  • Why my project would fail to build for android?
    I have started a simple Qt widgets application; the problem is the application would not build and it would fail.
    1.png 2.png 3.png 4.png 5.png

    This is the compile output message

    FAILURE: Build failed with an exception.

    • What went wrong:
      Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

    • 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 857ms
    -- Skipping C:/Qt/6.1.3/android_armv7/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt6Svg_armeabi-v7a.so.
    -- Skipping C:/Qt/6.1.3/android_armv7/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt6Svg_armeabi-v7a.so.
    Skipping createRCC
    Building the android package failed!
    -- For more information, run this command with --verbose.
    18:04:37: The process "C:\Qt\6.1.3\mingw81_64\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project Test (kit: Android Qt 6.1.3 Clang armeabi-v7a)
    When executing step "Build Android APK"

    I have no Idea what I have done wrong or should I do, since I'm a beginner with QT, please help me solve the issue.


Log in to reply