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 :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
-
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 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