Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Failed to build Android apk with assets



  • Hello.

    I try to add to assets about 130MB of data (WAV media).

    • First of all I have added new build step to set symbolic link my data folder into %{sourceDir}/android/data. This failed with > Java heap space.
    • Then I have added _JAVA_OPTIONS = -Xmx8192m into Build Environment. This failed with java.lang.OutOfMemoryError: GC overhead limit exceeded.
    • Then I have added -XX:-UseGCOverheadLimit to _JAVA_OPTIONS. This failed with:
      Execution failed for task ':packageDebug'.
      > value (5222390890) > 0x00000000ffffffffL
      

    My setup info:

    • Qt Creator 4.6.2
    • Based on Qt 5.11.1 (GCC 8.1.1 20180531, 64 bit)
    • SDK Version: 26.1.1
    • NDK Version: 10.4.0
    • Android SDK Platform-Tools 28.0.0
    • Android SDK Build-Tools 28.0.0
    • Android SDK Tools 26.1.1
    • SDK Platform 28 (Rev 4)
    • SDK Platform 21 (Rev 2)
    • jre-openjdk 8.u172-2 (Manjaro Linux)

    The whole compilation output is:

    16:57:16: Running steps for project ForeignLanguageTrainer_2...
    16:57:16: Starting: "/usr/bin/echo" -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    16:57:16: The process "/usr/bin/echo" exited normally.
    16:57:16: Starting: "/usr/bin/rm" -f /home/skovalev/Programmnig/FLT/android/assets/data
    16:57:16: The process "/usr/bin/rm" exited normally.
    16:57:16: Starting: "/usr/bin/mkdir" -p /home/skovalev/Programmnig/FLT/android/assets
    16:57:16: The process "/usr/bin/mkdir" exited normally.
    16:57:16: Starting: "/usr/bin/ln" -s /home/skovalev/Programmnig/FLT/../Resources/HSK /home/skovalev/Programmnig/FLT/android/assets/data
    16:57:16: The process "/usr/bin/ln" exited normally.
    16:57:16: Configuration unchanged, skipping qmake step.
    16:57:16: Starting: "/home/skovalev/lib/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" 
    make: Nothing to be done for `first'.
    16:57:16: The process "/home/skovalev/lib/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" exited normally.
    16:57:16: Removing directory /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-build/assets
    16:57:17: Removing directory /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-build/libs
    16:57:17: Starting: "/home/skovalev/lib/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-build install
    /opt/android-qt5/5.11.1/armeabi-v7a/bin/qmake -install qinstall -exe libForeignLanguageTrainer_2.so /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-build/libs/armeabi-v7a/libForeignLanguageTrainer_2.so
    16:57:17: The process "/home/skovalev/lib/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" exited normally.
    16:57:17: Starting: "/opt/android-qt5/5.11.1/armeabi-v7a/bin/androiddeployqt" --input /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-libForeignLanguageTrainer_2.so-deployment-settings.json --output /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-build --android-platform android-28 --jdk /usr/lib/jvm/default --gradle
    Generating Android Package
      Input file: /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-libForeignLanguageTrainer_2.so-deployment-settings.json
      Output directory: /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/android-build/
      Application binary: /home/skovalev/Programmnig/.builds/build-ForeignLanguageTrainer_2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_armeabi_v7a-Release/libForeignLanguageTrainer_2.so
      Android build platform: android-28
      Install to device: No
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    Skipping /opt/android-qt5/5.11.1/armeabi-v7a/lib/libQt5MultimediaQuick.so due to unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so
    Skipping lib/libQt5MultimediaQuick.so due to unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/platforms/libqwebgl.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5WebSockets.so,lib/libQt5Qml.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/lib/libQt5MultimediaQuick.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/video/videonode/libqtsgvideonode_android.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so.
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk NO-SOURCE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug FAILED
    
    BUILD FAILED
    
    Total time: 24 mins 34.262 secs
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':packageDebug'.
    > value (5222390890) > 0x00000000ffffffffL
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Building the android package failed!
      -- For more information, run this command with --verbose.
    17:53:17: The process "/opt/android-qt5/5.11.1/armeabi-v7a/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project ForeignLanguageTrainer_2 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.1 (armeabi-v7a)))
    When executing step "Build Android APK"
    17:53:21: Elapsed time: 56:06.
    

    Java build log (add -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log into _JAVA_OPTIONS) is:

    OpenJDK 64-Bit Server VM (25.172-b11) for linux-amd64 JRE (1.8.0_172-b11), built on Apr 26 2018 02:09:23 by "builduser" with gcc 7.3.1 20180406
    Memory: 4k page, physical 3943976k(265552k free), swap 8674852k(8105768k free)
    CommandLine flags: -XX:InitialHeapSize=63103616 -XX:MaxHeapSize=8589934592 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:-UseGCOverheadLimit -XX:+UseParallelGC 
    0,997: [GC (Allocation Failure) [PSYoungGen: 15872K->2530K(18432K)] 15872K->3254K(60928K), 0,0037577 secs] [Times: user=0,01 sys=0,00, real=0,00 secs] 
    1,244: [GC (Allocation Failure) [PSYoungGen: 18402K->2548K(18432K)] 19126K->4093K(60928K), 0,0058333 secs] [Times: user=0,01 sys=0,01, real=0,01 secs] 
    1,477: [GC (Allocation Failure) [PSYoungGen: 18420K->2544K(18432K)] 19965K->4602K(60928K), 0,0032150 secs] [Times: user=0,01 sys=0,00, real=0,00 secs] 
    1,649: [GC (Allocation Failure) [PSYoungGen: 18416K->2528K(34304K)] 20474K->5981K(76800K), 0,0042936 secs] [Times: user=0,01 sys=0,00, real=0,00 secs] 
    2,288: [GC (Allocation Failure) [PSYoungGen: 34272K->2528K(34304K)] 37725K->11852K(76800K), 0,0093214 secs] [Times: user=0,03 sys=0,01, real=0,01 secs] 
    2,861: [GC (Allocation Failure) [PSYoungGen: 34272K->6649K(70656K)] 43596K->15982K(113152K), 0,0157590 secs] [Times: user=0,05 sys=0,00, real=0,02 secs] 
    3,079: [GC (Metadata GC Threshold) [PSYoungGen: 20260K->5318K(71168K)] 29592K->15298K(113664K), 0,0112676 secs] [Times: user=0,04 sys=0,00, real=0,01 secs] 
    3,090: [Full GC (Metadata GC Threshold) [PSYoungGen: 5318K->0K(71168K)] [ParOldGen: 9980K->8122K(35328K)] 15298K->8122K(106496K), [Metaspace: 20956K->20956K(1067008K)], 0,0548938 secs] [Times: user=0,19 sys=0,00, real=0,05 secs] 
    4,438: [GC (Allocation Failure) [PSYoungGen: 62976K->6489K(104448K)] 71098K->14620K(139776K), 0,0097626 secs] [Times: user=0,04 sys=0,00, real=0,01 secs] 
    6,015: [GC (Allocation Failure) [PSYoungGen: 104281K->8675K(132096K)] 112412K->21383K(167424K), 0,0178751 secs] [Times: user=0,07 sys=0,01, real=0,02 secs] 
    6,220: [GC (Metadata GC Threshold) [PSYoungGen: 25800K->7531K(139776K)] 38508K->23088K(175104K), 0,0121003 secs] [Times: user=0,04 sys=0,00, real=0,01 secs] 
    6,232: [Full GC (Metadata GC Threshold) [PSYoungGen: 7531K->0K(139776K)] [ParOldGen: 15557K->16690K(54272K)] 23088K->16690K(194048K), [Metaspace: 34543K->34543K(1079296K)], 0,0719813 secs] [Times: user=0,23 sys=0,00, real=0,07 secs] 
    9,716: [GC (Allocation Failure) [PSYoungGen: 128512K->11233K(139776K)] 145202K->33015K(194048K), 0,0187076 secs] [Times: user=0,05 sys=0,01, real=0,02 secs] 
    10,650: [GC (Allocation Failure) [PSYoungGen: 139745K->13350K(183296K)] 161527K->43916K(237568K), 0,0250158 secs] [Times: user=0,08 sys=0,02, real=0,02 secs] 
    15,828: [GC (Allocation Failure) [PSYoungGen: 181798K->15828K(184832K)] 212364K->57169K(239104K), 0,0262700 secs] [Times: user=0,08 sys=0,02, real=0,02 secs] 
    28,111: [GC (Allocation Failure) [PSYoungGen: 184276K->9444K(223232K)] 225617K->63910K(278528K), 0,0226873 secs] [Times: user=0,06 sys=0,01, real=0,02 secs] 
    28,134: [Full GC (Ergonomics) [PSYoungGen: 9444K->1184K(223232K)] [ParOldGen: 54465K->55197K(111616K)] 63910K->56381K(334848K), [Metaspace: 47239K->47239K(1091584K)], 0,3204350 secs] [Times: user=1,14 sys=0,01, real=0,32 secs] 
    49,668: [GC (Allocation Failure) [PSYoungGen: 213152K->12852K(229888K)] 268349K->68049K(341504K), 0,0242499 secs] [Times: user=0,08 sys=0,00, real=0,02 secs] 
    50,686: [GC (Allocation Failure) [PSYoungGen: 224820K->18400K(272384K)] 280017K->86068K(384000K), 0,0364769 secs] [Times: user=0,13 sys=0,01, real=0,03 secs] 
    51,756: [GC (Allocation Failure) [PSYoungGen: 272352K->25581K(279552K)] 340020K->114053K(391168K), 0,0310058 secs] [Times: user=0,11 sys=0,01, real=0,04 secs] 
    52,426: [GC (Allocation Failure) [PSYoungGen: 279533K->31959K(340992K)] 368005K->145263K(454656K), 0,0264441 secs] [Times: user=0,05 sys=0,03, real=0,03 secs] 
    52,452: [Full GC (Ergonomics) [PSYoungGen: 31959K->11815K(340992K)] [ParOldGen: 113304K->113652K(192512K)] 145263K->125468K(533504K), [Metaspace: 48464K->48464K(1091584K)], 0,2979017 secs] [Times: user=1,03 sys=0,01, real=0,30 secs] 
    53,519: [GC (Allocation Failure) [PSYoungGen: 315431K->38767K(345088K)] 429084K->163933K(537600K), 0,0251050 secs] [Times: user=0,06 sys=0,04, real=0,02 secs] 
    54,341: [GC (Allocation Failure) [PSYoungGen: 342362K->39661K(418304K)] 467528K->202870K(610816K), 0,0215051 secs] [Times: user=0,03 sys=0,06, real=0,02 secs] 
    54,363: [Full GC (Ergonomics) [PSYoungGen: 39661K->10309K(418304K)] [ParOldGen: 163209K->192197K(292352K)] 202870K->202506K(710656K), [Metaspace: 48550K->48550K(1091584K)], 0,1227128 secs] [Times: user=0,40 sys=0,02, real=0,12 secs] 
    55,366: [GC (Allocation Failure) [PSYoungGen: 381509K->47652K(423424K)] 573706K->250156K(715776K), 0,0270703 secs] [Times: user=0,08 sys=0,02, real=0,02 secs] 
    56,229: [GC (Allocation Failure) [PSYoungGen: 418852K->58878K(474624K)] 621356K->298259K(766976K), 0,0320333 secs] [Times: user=0,05 sys=0,06, real=0,03 secs] 
    57,200: [GC (Allocation Failure) [PSYoungGen: 474622K->53260K(497664K)] 714003K->351513K(796160K), 0,0304037 secs] [Times: user=0,06 sys=0,05, real=0,03 secs] 
    57,230: [Full GC (Ergonomics) [PSYoungGen: 53260K->52639K(497664K)] [ParOldGen: 298253K->298091K(432128K)] 351513K->350730K(929792K), [Metaspace: 48587K->48587K(1091584K)], 0,1600645 secs] [Times: user=0,56 sys=0,01, real=0,16 secs] 
    58,356: [GC (Allocation Failure) [PSYoungGen: 468383K->54837K(576512K)] 766474K->405327K(1008640K), 0,0401770 secs] [Times: user=0,09 sys=0,06, real=0,04 secs] 
    59,529: [GC (Allocation Failure) [PSYoungGen: 546357K->88044K(579584K)] 896847K->468363K(1011712K), 0,0355893 secs] [Times: user=0,10 sys=0,02, real=0,03 secs] 
    59,564: [Full GC (Ergonomics) [PSYoungGen: 88044K->35939K(579584K)] [ParOldGen: 380319K->432110K(589312K)] 468363K->468050K(1168896K), [Metaspace: 48587K->48587K(1091584K)], 0,1686219 secs] [Times: user=0,50 sys=0,05, real=0,17 secs] 
    60,890: [GC (Allocation Failure) [PSYoungGen: 527459K->63315K(656896K)] 959570K->531384K(1246208K), 0,0392354 secs] [Times: user=0,07 sys=0,08, real=0,04 secs] 
    62,200: [GC (Allocation Failure) [PSYoungGen: 613715K->114132K(664576K)] 1081784K->600969K(1253888K), 0,0374857 secs] [Times: user=0,10 sys=0,04, real=0,04 secs] 
    63,534: [GC (Allocation Failure) [PSYoungGen: 664532K->132604K(708096K)] 1151369K->669812K(1297408K), 0,0499086 secs] [Times: user=0,05 sys=0,15, real=0,05 secs] 
    63,584: [Full GC (Ergonomics) [PSYoungGen: 132604K->78860K(708096K)] [ParOldGen: 537208K->589261K(768512K)] 669812K->668121K(1476608K), [Metaspace: 48587K->48587K(1091584K)], 0,2711441 secs] [Times: user=0,95 sys=0,05, real=0,27 secs] 
    65,114: [GC (Allocation Failure) [PSYoungGen: 654348K->94712K(748544K)] 1243609K->740384K(1517056K), 0,0538138 secs] [Times: user=0,16 sys=0,05, real=0,06 secs] 
    66,520: [GC (Allocation Failure) [PSYoungGen: 670200K->169681K(788992K)] 1315872K->815353K(1557504K), 0,0471458 secs] [Times: user=0,10 sys=0,08, real=0,05 secs] 
    68,004: [GC (Allocation Failure) [PSYoungGen: 785617K->200186K(816128K)] 1431289K->893199K(1584640K), 0,0685984 secs] [Times: user=0,21 sys=0,06, real=0,07 secs] 
    69,547: [GC (Allocation Failure) [PSYoungGen: 816122K->193508K(922112K)] 1509135K->975280K(1704448K), 0,0891133 secs] [Times: user=0,12 sys=0,18, real=0,09 secs] 
    69,637: [Full GC (Ergonomics) [PSYoungGen: 193508K->191705K(922112K)] [ParOldGen: 781772K->782073K(1003008K)] 975280K->973778K(1925120K), [Metaspace: 48587K->48587K(1091584K)], 0,2669307 secs] [Times: user=0,97 sys=0,02, real=0,26 secs] 
    71,440: [GC (Allocation Failure) [PSYoungGen: 863449K->271324K(943104K)] 1645522K->1056270K(1946112K), 0,0873247 secs] [Times: user=0,34 sys=0,00, real=0,09 secs] 
    73,049: [GC (Allocation Failure) [PSYoungGen: 943068K->316414K(998400K)] 1728014K->1143731K(2001408K), 0,1180817 secs] [Times: user=0,22 sys=0,19, real=0,12 secs] 
    74,749: [GC (Allocation Failure) [PSYoungGen: 998398K->293208K(1066496K)] 1825715K->1230761K(2069504K), 0,1106130 secs] [Times: user=0,27 sys=0,12, real=0,11 secs] 
    74,860: [Full GC (Ergonomics) [PSYoungGen: 293208K->227583K(1066496K)] [ParOldGen: 937553K->1002878K(1261056K)] 1230761K->1230461K(2327552K), [Metaspace: 48593K->48593K(1091584K)], 0,3641372 secs] [Times: user=1,29 sys=0,04, real=0,36 secs] 
    76,763: [GC (Allocation Failure) [PSYoungGen: 909567K->262567K(1174528K)] 1912445K->1316377K(2435584K), 0,1140808 secs] [Times: user=0,24 sys=0,14, real=0,12 secs] 
    78,609: [GC (Allocation Failure) [PSYoungGen: 1021863K->290007K(1186816K)] 2075673K->1411554K(2447872K), 0,0951720 secs] [Times: user=0,28 sys=0,10, real=0,09 secs] 
    80,456: [GC (Allocation Failure) [PSYoungGen: 1049303K->348723K(1265152K)] 2170850K->1505570K(2526208K), 0,1379161 secs] [Times: user=0,20 sys=0,23, real=0,13 secs] 
    80,594: [Full GC (Ergonomics) [PSYoungGen: 348723K->244689K(1265152K)] [ParOldGen: 1156847K->1260761K(1529344K)] 1505570K->1505451K(2794496K), [Metaspace: 48604K->48604K(1091584K)], 0,4283272 secs] [Times: user=1,36 sys=0,11, real=0,43 secs] 
    83,488: [GC (Allocation Failure) [PSYoungGen: 1063889K->296287K(1300480K)] 2324651K->1613844K(2829824K), 0,1102511 secs] [Times: user=0,30 sys=0,07, real=0,11 secs] 
    86,344: [GC (Allocation Failure) [PSYoungGen: 1115487K->395776K(1363968K)] 2433044K->1713333K(2893312K), 0,8765649 secs] [Times: user=0,35 sys=0,52, real=0,88 secs] 
    91,441: [GC (Allocation Failure) [PSYoungGen: 1270784K->379681K(1405440K)] 2588341K->1823752K(2934784K), 0,3102740 secs] [Times: user=0,30 sys=0,41, real=0,31 secs] 
    91,782: [Full GC (Ergonomics) [PSYoungGen: 379681K->293845K(1405440K)] [ParOldGen: 1444071K->1529003K(1836032K)] 1823752K->1822849K(3241472K), [Metaspace: 48607K->48607K(1091584K)], 2,0346080 secs] [Times: user=1,02 sys=0,30, real=2,04 secs] 
    100,647: [GC (Allocation Failure) [PSYoungGen: 1168853K->272372K(1477632K)] 2697857K->1936325K(3313664K), 3,2006673 secs] [Times: user=0,35 sys=0,88, real=3,68 secs] 
    116,569: [GC (Allocation Failure) [PSYoungGen: 1248244K->320884K(1511936K)] 2912197K->2060773K(3347968K), 0,1922150 secs] [Times: user=0,25 sys=0,08, real=0,19 secs] 
    116,762: [Full GC (Ergonomics) [PSYoungGen: 320884K->224516K(1511936K)] [ParOldGen: 1739889K->1835497K(2183168K)] 2060773K->2060013K(3695104K), [Metaspace: 48607K->48607K(1091584K)], 0,6310299 secs] [Times: user=1,03 sys=0,20, real=0,63 secs] 
    121,453: [GC (Allocation Failure) [PSYoungGen: 1200388K->346882K(1604096K)] 3035885K->2182380K(3787264K), 0,2209574 secs] [Times: user=0,35 sys=0,18, real=0,22 secs] 
    126,432: [GC (Allocation Failure) [PSYoungGen: 1415938K->459348K(1610240K)] 3251436K->2317749K(3793408K), 0,1610016 secs] [Times: user=0,51 sys=0,03, real=0,16 secs] 
    131,764: [GC (Allocation Failure) [PSYoungGen: 1528404K->586233K(1676288K)] 3386805K->2449286K(3859456K), 12,4377012 secs] [Times: user=0,48 sys=1,50, real=12,44 secs] 
    148,133: [GC (Allocation Failure) [PSYoungGen: 1676281K->522803K(1760256K)] 3539334K->2587314K(3943424K), 10,5816000 secs] [Times: user=0,32 sys=0,80, real=10,58 secs] 
    158,719: [Full GC (Ergonomics) [PSYoungGen: 522803K->402575K(1760256K)] [ParOldGen: 2064510K->2183060K(2583040K)] 2587314K->2585635K(4343296K), [Metaspace: 48607K->48607K(1091584K)], 43,8744536 secs] [Times: user=121,08 sys=4,94, real=43,87 secs] 
    246,473: [GC (Allocation Failure) [PSYoungGen: 1492623K->346082K(1842688K)] 3675683K->2724769K(4425728K), 28,5576981 secs] [Times: user=0,69 sys=3,75, real=28,56 secs] 
    275,037: [Full GC (Ergonomics) [PSYoungGen: 346082K->140852K(1842688K)] [ParOldGen: 2378687K->2583001K(3036160K)] 2724769K->2723853K(4878848K), [Metaspace: 48613K->48613K(1091584K)], 14,9816920 secs] [Times: user=34,71 sys=2,16, real=14,98 secs] 
    295,126: [GC (Allocation Failure) [PSYoungGen: 1384500K->225549K(1922560K)] 3967501K->2882402K(4958720K), 0,1672717 secs] [Times: user=0,19 sys=0,20, real=0,16 secs] 
    299,828: [GC (Allocation Failure) [PSYoungGen: 1469197K->159257K(2014720K)] 4126050K->3041068K(5050880K), 0,1463815 secs] [Times: user=0,23 sys=0,19, real=0,14 secs] 
    299,975: [Full GC (Ergonomics) [PSYoungGen: 159257K->4845K(2014720K)] [ParOldGen: 2881811K->3035786K(3536384K)] 3041068K->3040632K(5551104K), [Metaspace: 48618K->48618K(1091584K)], 0,3698909 secs] [Times: user=0,83 sys=0,21, real=0,37 secs] 
    306,100: [GC (Allocation Failure) [PSYoungGen: 1383661K->177748K(2036224K)] 4419448K->3218205K(5572608K), 0,4345395 secs] [Times: user=0,20 sys=0,30, real=0,43 secs] 
    312,456: [GC (Allocation Failure) [PSYoungGen: 1556564K->175975K(2100224K)] 4597021K->3393905K(5636608K), 12,0439559 secs] [Times: user=0,34 sys=0,90, real=12,05 secs] 
    332,673: [GC (Allocation Failure) [PSYoungGen: 1669991K->187608K(2123776K)] 4887921K->3580853K(5660160K), 8,4968585 secs] [Times: user=0,17 sys=1,87, real=8,50 secs] 
    341,170: [Full GC (Ergonomics) [PSYoungGen: 187608K->44125K(2123776K)] [ParOldGen: 3393245K->3535783K(4082176K)] 3580853K->3579908K(6205952K), [Metaspace: 48618K->48618K(1091584K)], 8,0586145 secs] [Times: user=1,04 sys=0,87, real=8,06 secs] 
    360,411: [GC (Allocation Failure) [PSYoungGen: 1538141K->188390K(2122240K)] 5073924K->3768028K(6204416K), 9,2946054 secs] [Times: user=0,39 sys=0,91, real=9,30 secs] 
    374,931: [GC (Allocation Failure) [PSYoungGen: 1743334K->195638K(2146816K)] 5322972K->3963003K(6228992K), 0,8851695 secs] [Times: user=0,20 sys=0,47, real=0,89 secs] 
    381,618: [GC (Allocation Failure) [PSYoungGen: 1750582K->198761K(2158592K)] 5517947K->4160688K(6240768K), 18,6434099 secs] [Times: user=0,27 sys=0,62, real=18,65 secs] 
    400,334: [Full GC (Ergonomics) [PSYoungGen: 198761K->77997K(2158592K)] [ParOldGen: 3961927K->4081801K(4669952K)] 4160688K->4159798K(6828544K), [Metaspace: 48618K->48618K(1091584K)], 36,3744167 secs] [Times: user=81,36 sys=5,39, real=36,41 secs] 
    513,548: [GC (Allocation Failure) [PSYoungGen: 1711277K->208138K(2183168K)] 5793078K->4367662K(6853120K), 16,6496554 secs] [Times: user=1,23 sys=1,88, real=16,65 secs] 
    537,109: [GC (Allocation Failure) [PSYoungGen: 1841418K->212698K(2200064K)] 6000942K->4579385K(6870016K), 1,3793513 secs] [Times: user=0,20 sys=1,52, real=1,38 secs] 
    538,493: [Full GC (Ergonomics) [PSYoungGen: 212698K->0K(2200064K)] [ParOldGen: 4366686K->4578718K(5195776K)] 4579385K->4578718K(7395840K), [Metaspace: 48626K->48626K(1091584K)], 24,9072988 secs] [Times: user=7,35 sys=2,26, real=24,91 secs] 
    577,315: [GC (Allocation Failure) [PSYoungGen: 1718784K->221326K(2224128K)] 6297502K->4800045K(7419904K), 0,7816151 secs] [Times: user=0,21 sys=0,35, real=0,79 secs] 
    583,803: [GC (Allocation Failure) [PSYoungGen: 1940110K->216386K(2248704K)] 6518829K->5016056K(7444480K), 31,7971663 secs] [Times: user=69,29 sys=2,09, real=31,80 secs] 
    627,224: [GC (Allocation Failure) [PSYoungGen: 2023746K->237359K(2270720K)] 6823416K->5252796K(7466496K), 27,2651080 secs] [Times: user=4,16 sys=1,28, real=27,27 secs] 
    654,492: [Full GC (Ergonomics) [PSYoungGen: 237359K->54409K(2270720K)] [ParOldGen: 5015437K->5195431K(5592576K)] 5252796K->5249841K(7863296K), [Metaspace: 48663K->48663K(1091584K)], 169,7718303 secs] [Times: user=287,10 sys=18,08, real=169,77 secs] 
    924,770: [GC (Allocation Failure) [PSYoungGen: 1861769K->26218K(2316800K)] 7057201K->5263663K(7909376K), 23,9723855 secs] [Times: user=0,73 sys=1,39, real=23,97 secs] 
    985,874: [GC (Allocation Failure) [PSYoungGen: 1901674K->160K(1875968K)] 7139119K->5256245K(7468544K), 0,4175309 secs] [Times: user=0,32 sys=0,10, real=0,42 secs] 
    1034,305: [GC (Allocation Failure) [PSYoungGen: 1875616K->320K(2314240K)] 7131701K->5256405K(7906816K), 0,5094422 secs] [Times: user=0,28 sys=0,08, real=0,51 secs] 
    1105,062: [GC (Allocation Failure) [PSYoungGen: 1844032K->416K(2319872K)] 7100117K->5256509K(7912448K), 1,0665056 secs] [Times: user=0,93 sys=0,17, real=1,07 secs] 
    1158,127: [GC (Allocation Failure) [PSYoungGen: 1844128K->512K(2310656K)] 7100221K->5256605K(7903232K), 0,3821237 secs] [Times: user=0,16 sys=0,10, real=0,38 secs] 
    1210,454: [GC (Allocation Failure) [PSYoungGen: 1844224K->576K(2315264K)] 7100317K->5256669K(7907840K), 0,1542609 secs] [Times: user=0,22 sys=0,03, real=0,16 secs] 
    1283,886: [GC (Allocation Failure) [PSYoungGen: 1844264K->672K(2305024K)] 7100358K->5256773K(7897600K), 1,3348893 secs] [Times: user=0,49 sys=0,21, real=1,33 secs] 
    1343,340: [GC (Allocation Failure) [PSYoungGen: 1862203K->768K(2312704K)] 7118305K->5256877K(7905280K), 0,2416286 secs] [Times: user=0,35 sys=0,05, real=0,24 secs] 
    1409,194: [GC (Allocation Failure) [PSYoungGen: 1862152K->928K(2318336K)] 7118262K->5257037K(7910912K), 0,3484811 secs] [Times: user=0,29 sys=0,05, real=0,35 secs] 
    Heap
     PSYoungGen      total 2318336K, used 992126K [0x0000000715580000, 0x00000007bd380000, 0x00000007c0000000)
      eden space 1906688K, 51% used [0x0000000715580000,0x0000000751d779d0,0x0000000789b80000)
      from space 411648K, 0% used [0x00000007a4180000,0x00000007a4268000,0x00000007bd380000)
      to   space 421888K, 0% used [0x0000000789b80000,0x0000000789b80000,0x00000007a3780000)
     ParOldGen       total 5592576K, used 5256109K [0x00000005c0000000, 0x0000000715580000, 0x0000000715580000)
      object space 5592576K, 93% used [0x00000005c0000000,0x0000000700ceb7b0,0x0000000715580000)
     Metaspace       used 50982K, capacity 52302K, committed 52608K, reserved 1095680K
      class space    used 6918K, capacity 7232K, committed 7296K, reserved 1048576K
    

    Thank you in advance.
    With best regards Sergey Kovalev.



  • Seems like it some how relates to Unity Issue.



  • Did you just upgrade to the latest Qt and Android versions?



  • So the reason for my question was I just updated to Qt 5.10.1 and the newest Android SDK.

    My Qt project would compile without errors, but failed in the APK build process with a lot of java exceptions.

    A "Clean Project" and "Build Project" was done and this had no effect..still errors.

    After much online searching, I found a 5 year old thread on StackOverflow that suggested deleting the "android-build" folder..the entire folder. The Qt build process recreates it if it is not there. Problem solved. APK built w/o issues.



  • Hello @PSI_lbc. Thank You for Your reply.

    I will try in near feature.


    N.B. Sorry for late reaction - I didn't see any notifications about the thread.



  • I have removed whole build directory and received next compilation output:

      Android build platform: android-28
      Install to device: No
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    Skipping /opt/android-qt5/5.11.1/armeabi-v7a/lib/libQt5MultimediaQuick.so due to unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so
    Skipping lib/libQt5MultimediaQuick.so due to unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/platforms/libqwebgl.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5WebSockets.so,lib/libQt5Qml.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/lib/libQt5MultimediaQuick.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so.
      -- Skipping /opt/android-qt5/5.11.1/armeabi-v7a/plugins/video/videonode/libqtsgvideonode_android.so. It has unmet dependencies: lib/libQt5Quick.so,lib/libQt5Qml.so.
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl
    :compileDebugRenderscript
    :generateDebugBuildConfig
    :generateDebugResValues
    :generateDebugResources
    :mergeDebugResources
    :processDebugManifest
    :processDebugResources
    :generateDebugSources
    :incrementalDebugJavaCompilationSafeguard
    :compileDebugJavaWithJavac
    :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    :compileDebugNdk NO-SOURCE
    :compileDebugSources
    :mergeDebugShaders
    :compileDebugShaders
    :generateDebugAssets
    :mergeDebugAssets
    :transformClassesWithDexForDebug
    
    Running dex as a separate process.
    
    To run dex in process, the Gradle daemon needs a larger heap.
    It currently has 1024 MB.
    For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.
    To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.
    For more information see https://docs.gradle.org/current/userguide/build_environment.html
    
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    Picked up _JAVA_OPTIONS: -Xmx8192m -XX:-UseGCOverheadLimit -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/tmp/gc.log
    :mergeDebugJniLibFolders
    :transformNative_libsWithMergeJniLibsForDebug
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug
    :validateSigningDebug
    Building the android package failed!
      -- For more information, run this command with --verbose.
    :packageDebug14:42:10: The process "/opt/android-qt5/5.11.1/armeabi-v7a/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project ForeignLanguageTrainer_2 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.1 (armeabi-v7a)))
    When executing step "Build Android APK"
    

Log in to reply