Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81773

Android 5.14.1 - 5.15.0 AAPT: error: resource array/bundled_in_lib

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.14.1, 5.15
    • Extras: Android
    • None
    • debian,ndk-r21
    • Android

    Description

      Applicaction for 5.15.0 (snapshot) and 5.14.1 cannot be compiled:

      https://github.com/qt-labs/weather-app/

      Qt 5.14.1

      11:22:35: The process "/home/user/Android/android-ndk-r21/prebuilt/linux-x86_64/bin/make" exited normally.
      11:22:35: Starting: "/home/user/Qt5132/5.14.1/android/bin/androiddeployqt" --input /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-QuickForecast-deployment-settings.json --output /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-build --android-platform android-29 --jdk /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 --gradle
      Generating Android Package
        Input file: /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-QuickForecast-deployment-settings.json
        Output directory: /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-build/
        Application binary: QuickForecast
        Android build platform: android-29
        Install to device: No
      Warning: QML import could not be resolved in any of the import paths: org.qtproject.demo.weather
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        -- Skipping /home/user/Qt5132/5.14.1/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
        -- Skipping /home/user/Qt5132/5.14.1/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
      > Task :preBuild UP-TO-DATE
      > Task :preDebugBuild UP-TO-DATE
      > Task :compileDebugAidl
      > Task :compileDebugRenderscript NO-SOURCE
      > Task :checkDebugManifest
      > Task :generateDebugBuildConfig
      > Task :mainApkListPersistenceDebug
      > Task :generateDebugResValues
      > Task :generateDebugResources
      > Task :javaPreCompileDebug
      > Task :createDebugCompatibleScreenManifests> Task :processDebugManifest
      /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-build/AndroidManifest.xml:40:5-66 Warning:
      	Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:40:5-66 duplicated with element declared at AndroidManifest.xml:36:5-67
      /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-build/AndroidManifest.xml:41:5-80 Warning:
      	Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:41:5-80 duplicated with element declared at AndroidManifest.xml:37:5-81> Task :mergeDebugShaders
      > Task :compileDebugShaders
      > Task :generateDebugAssets
      > Task :mergeDebugAssets
      > Task :processDebugJavaRes NO-SOURCE
      > Task :checkDebugDuplicateClasses
      > Task :validateSigningDebug
      > Task :signingConfigWriterDebug
      > Task :mergeDebugJniLibFolders
      > Task :mergeDebugResources
      > Task :processDebugResources FAILED
      > Task :mergeExtDexDebugFAILURE: Build failed with an exception.* What went wrong:
      Execution failed for task ':processDebugResources'.
      > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
         > Android resource linking failed
           /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-build/AndroidManifest.xml:16:13-120: AAPT: error: resource array/bundled_in_lib (aka org.qtproject.quickforecast:array/bundled_in_lib) not found.
               
           /home/user/Project/qt/build-weatherapp-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_1_for_Android_be7900-Debug/android-build/AndroidManifest.xml:17:13-126: AAPT: error: resource array/bundled_in_assets (aka org.qtproject.quickforecast:array/bundled_in_assets) not found.
               * 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
      
      

      Qt 5.15.0 (snapshot)

      11:13:49: The process "/home/user/Android/android-ndk-r21/prebuilt/linux-x86_64/bin/make" exited normally.
      11:13:49: Removing directory /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build/assets
      11:13:49: Removing directory /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build/libs
      11:13:49: Starting: "/home/user/Android/android-ndk-r21/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build install
      /home/user/Qt5132/5.15.0/android/bin/qmake -install qinstall -exe libQuickForecast_armeabi-v7a.so /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build/libs/armeabi-v7a/libQuickForecast_armeabi-v7a.so
      11:13:49: The process "/home/user/Android/android-ndk-r21/prebuilt/linux-x86_64/bin/make" exited normally.
      11:13:49: Starting: "/home/user/Qt5132/5.15.0/android/bin/androiddeployqt" --input /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-QuickForecast-deployment-settings.json --output /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build --android-platform android-29 --jdk /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 --gradle
      Generating Android Package
        Input file: /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-QuickForecast-deployment-settings.json
        Output directory: /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build/
        Application binary: QuickForecast
        Android build platform: android-29
        Install to device: No
      Warning: QML import could not be resolved in any of the import paths: org.qtproject.demo.weather
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        -- Skipping /home/user/Qt5132/5.15.0/android/plugins/platforminputcontexts/libplugins_platforminputcontexts_qtvirtualkeyboardplugin_armeabi-v7a.so. It has unmet dependencies: lib/libQt5VirtualKeyboard_armeabi-v7a.so.
        -- Skipping /home/user/Qt5132/5.15.0/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
        -- Skipping /home/user/Qt5132/5.15.0/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.> Configure project :
      WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
      It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html> Task :preBuild UP-TO-DATE
      > Task :preDebugBuild UP-TO-DATE
      > Task :compileDebugAidl UP-TO-DATE
      > Task :compileDebugRenderscript NO-SOURCE
      > Task :checkDebugManifest UP-TO-DATE
      > Task :generateDebugBuildConfig UP-TO-DATE
      > Task :javaPreCompileDebug UP-TO-DATE
      > Task :mainApkListPersistenceDebug UP-TO-DATE
      > Task :generateDebugResValues UP-TO-DATE
      > Task :generateDebugResources UP-TO-DATE
      > Task :mergeDebugResources UP-TO-DATE
      > Task :createDebugCompatibleScreenManifests UP-TO-DATE
      > Task :processDebugManifest UP-TO-DATE
      > Task :processDebugResources FAILEDFAILURE: Build failed with an exception.* What went wrong:
      Execution failed for task ':processDebugResources'.
      > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
         > Android resource linking failed
           /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build/AndroidManifest.xml:16:13-120: AAPT: error: resource array/bundled_in_lib (aka org.qtproject.quickforecast:array/bundled_in_lib) not found.
               
           /home/user/Project/qt/build-weatherapp-515_armv7-Debug/android-build/AndroidManifest.xml:17:13-126: AAPT: error: resource array/bundled_in_assets (aka org.qtproject.quickforecast:array/bundled_in_assets) not found.
               * 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.orgBUILD FAILED in 7s
      10 actionable tasks: 1 executed, 9 up-to-date
      Building the android package failed!
        -- For more information, run this command with --verbose.
      11:13:57: The process "/home/user/Qt5132/5.15.0/android/bin/androiddeployqt" exited with code 14.
      Error while building/deploying project weatherapp (kit: 515-armv7)
      When executing step "Build Android APK"
      11:13:57: Elapsed time: 00:15.
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            homdx Homdx Homdx
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes