Qt for android - packageDebug FAILED
-
wrote on 21 Feb 2019, 20:53 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
-
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
wrote on 22 Feb 2019, 08:06 last edited byFor Qt 5.11 you need NDK v. 10. Apparently the latest works sometimes...
-
wrote on 24 Feb 2019, 20:28 last edited by
how i can fix it ?
-
wrote on 24 Feb 2019, 22:02 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 -
wrote on 24 Feb 2019, 22:03 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*~ -
wrote on 8 Mar 2019, 05:52 last edited by
Hi @Karwan ,can you show me the contents of your AndroidManifest.xml file and the build settings of your project.
-
wrote on 13 Mar 2019, 01:40 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