Important: Please read the Qt Code of Conduct -

Qt for android - packageDebug FAILED

  • Hi, i'm using Qt 5.12 & i have jdk 8 , ndk r18b , latest sdk version , i tried to build and run for other project and it works fine , but one of the project didn't build and showing this at output

    	Element uses-permission#android.permission.ACCESS_FINE_LOCATION at AndroidManifest.xml:82:5-79 duplicated with element declared at AndroidManifest.xml:81:5-79
    W/ResourceType( 2724): For resource 0x0101053d, entry index(1341) is beyond type entryCount(1329)
    W/ResourceType( 2724): For resource 0x0101053e, entry index(1342) is beyond type entryCount(1329)
    W/ResourceType( 2724): For resource 0x0101053b, entry index(1339) is beyond type entryCount(1329)
    W/ResourceType( 2724): For resource 0x0101053c, entry index(1340) is beyond type entryCount(1329)
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    :compileDebugNdk NO-SOURCE
    :processDebugJavaRes NO-SOURCE
    :packageDebug FAILED
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':packageDebug'.
    > Failed to obtain compression information for entry
    * 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 3m 13s
    28 actionable tasks: 28 executed

  • For Qt 5.11 you need NDK v. 10. Apparently the latest works sometimes...

  • @mvuori sorry , i've ** 5.12

  • how i can fix it ?

  • 28 actionable tasks: 1 executed, 27 up-to-date
    VCS Checkout Cache (D:\App\build-example-Android_for_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Debug\android-build.gradle\vcsWorkingDirs) has not been cleaned up in 0 days

  • when i click clean all
    del moc_predefs.h
    Could Not Find D:\App\build-example-Android_for_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Debug\moc_predefs.h
    del qrc_qml.obj qrc_minus.obj main.obj
    del *~ core *.core
    Could Not Find D:\App\build-example-Android_for_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Debug*~

  • Hi @Karwan ,can you show me the contents of your AndroidManifest.xml file and the build settings of your project.

  • This happened because I included a very large zip file in the assets. I fixed this issue by adding dexoptions in app build.gradle

    android {
        dexOptions {
            javaMaxHeapSize "4g"

    and add this to


    then when you build it , Windows Firewall asks you to allow for a permision for java , just allow it & done ! :) ,
    this helped me : stackoverflow

Log in to reply