Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt for android - packageDebug FAILED
Forum Update on Monday, May 27th 2025

Qt for android - packageDebug FAILED

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 3 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Karwan
    wrote on 21 Feb 2019, 20:53 last edited by Karwan
    #1

    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
    :splitsDiscoveryTaskDebug
    :processDebugResources
    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)
    
    :generateDebugSources
    :javaPreCompileDebug
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    :compileDebugJavaWithJavac
    :compileDebugNdk NO-SOURCE
    :compileDebugSources
    :mergeDebugShaders
    :compileDebugShaders
    :generateDebugAssets
    :mergeDebugAssets
    :transformClassesWithDexBuilderForDebug
    :transformDexArchiveWithExternalLibsDexMergerForDebug
    :transformDexArchiveWithDexMergerForDebug
    :mergeDebugJniLibFolders
    :transformNativeLibsWithMergeJniLibsForDebug
    :checkDebugLibraries
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug
    :validateSigningDebug
    :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 https://help.gradle.org
    
    BUILD FAILED in 3m 13s
    28 actionable tasks: 28 executed
    
    M 1 Reply Last reply 22 Feb 2019, 08:06
    0
    • K Karwan
      21 Feb 2019, 20:53

      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
      :splitsDiscoveryTaskDebug
      :processDebugResources
      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)
      
      :generateDebugSources
      :javaPreCompileDebug
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      :compileDebugJavaWithJavac
      :compileDebugNdk NO-SOURCE
      :compileDebugSources
      :mergeDebugShaders
      :compileDebugShaders
      :generateDebugAssets
      :mergeDebugAssets
      :transformClassesWithDexBuilderForDebug
      :transformDexArchiveWithExternalLibsDexMergerForDebug
      :transformDexArchiveWithDexMergerForDebug
      :mergeDebugJniLibFolders
      :transformNativeLibsWithMergeJniLibsForDebug
      :checkDebugLibraries
      :processDebugJavaRes NO-SOURCE
      :transformResourcesWithMergeJavaResForDebug
      :validateSigningDebug
      :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 https://help.gradle.org
      
      BUILD FAILED in 3m 13s
      28 actionable tasks: 28 executed
      
      M Offline
      M Offline
      mvuori
      wrote on 22 Feb 2019, 08:06 last edited by
      #2

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

      K 1 Reply Last reply 22 Feb 2019, 14:32
      0
      • M mvuori
        22 Feb 2019, 08:06

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

        K Offline
        K Offline
        Karwan
        wrote on 22 Feb 2019, 14:32 last edited by
        #3

        @mvuori sorry , i've ** 5.12

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Karwan
          wrote on 24 Feb 2019, 20:28 last edited by
          #4

          how i can fix it ?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Karwan
            wrote on 24 Feb 2019, 22:02 last edited by
            #5

            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

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Karwan
              wrote on 24 Feb 2019, 22:03 last edited by
              #6

              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*~

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Shrinidhi Upadhyaya
                wrote on 8 Mar 2019, 05:52 last edited by
                #7

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

                Shrinidhi Upadhyaya.
                Upvote the answer(s) that helped you to solve the issue.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Karwan
                  wrote on 13 Mar 2019, 01:40 last edited by
                  #8

                  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 gradle.properties

                  org.gradle.jvmargs=-Xmx4608M
                  

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

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved