Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt for android - packageDebug FAILED

    Mobile and Embedded
    3
    8
    1545
    Loading More Posts
    • 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.
    • Karwan
      Karwan last edited by Karwan

      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 Reply Quote 0
      • M
        mvuori @Karwan last edited by

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

        Karwan 1 Reply Last reply Reply Quote 0
        • Karwan
          Karwan @mvuori last edited by

          @mvuori sorry , i've ** 5.12

          1 Reply Last reply Reply Quote 0
          • Karwan
            Karwan last edited by

            how i can fix it ?

            1 Reply Last reply Reply Quote 0
            • Karwan
              Karwan last edited by

              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 Reply Quote 0
              • Karwan
                Karwan last edited by

                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 Reply Quote 0
                • Shrinidhi Upadhyaya
                  Shrinidhi Upadhyaya last edited by

                  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 Reply Quote 0
                  • Karwan
                    Karwan last edited by

                    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 Reply Quote 0
                    • First post
                      Last post