Important: Please read the 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

    BUILD FAILED in 857ms
    -- Skipping C:/Qt/6.1.3/android_armv7/plugins/iconengines/ It has unmet dependencies: lib/
    -- Skipping C:/Qt/6.1.3/android_armv7/plugins/imageformats/ It has unmet dependencies: lib/
    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