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

[REG 6.5.1->6.5.0] sensors/sensorshowcase not compiling on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.5.1
    • Android
    • 2023wk18FOQtforAndroid

    Description

      Install Qt 6.5.1 Android binaries. Configure sensors/sensorsshowcase

      6.5.1/android_armv7/bin/qt-cmake -S /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase -B /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a -DANDROID_SDK_ROOT=/opt/android/sdk -DANDROID_NDK_ROOT=/opt/android/android-ndk-r25b -GNinja 

      finished fine, build

      cmake --build . --target apk 

      in /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a

      -> fails:

      [42/42] Creating APK for sensorsshowcase
      WARNING 16:53:33
      FAILED: CMakeFiles/sensorsshowcase_make_apk /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/CMakeFiles/sensorsshowcase_make_apk 
      cd /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a && /home/qt/RTA/Qt_6.5.1/6.5.1/gcc_64/bin/androiddeployqt --input /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-sensorsshowcase-deployment-settings.json --output /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-build --apk /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-build/sensorsshowcase.apk
      Generating Android Package
        Input file: /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-sensorsshowcase-deployment-settings.json
        Output directory: /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-build/
        Application binary: sensorsshowcase
        Android build platform: android-33
        Install to device: No
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.iOS
      > Task :preBuild UP-TO-DATE
      > Task :preDebugBuild UP-TO-DATE
      > Task :mergeDebugNativeDebugMetadata NO-SOURCE
      > Task :compileDebugAidl NO-SOURCE
      > Task :compileDebugRenderscript NO-SOURCE
      > Task :generateDebugBuildConfig
      > Task :javaPreCompileDebug
      > Task :checkDebugAarMetadata
      > Task :generateDebugResValues
      > Task :mapDebugSourceSetPaths
      > Task :generateDebugResources
      > Task :createDebugCompatibleScreenManifests
      > Task :extractDeepLinksDebug
      > Task :mergeDebugResources
      > Task :processDebugMainManifest
      package="org.qtproject.example.sensorsshowcase" found in source AndroidManifest.xml: /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-build/AndroidManifest.xml.
      Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
      Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
      This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
      > Task :processDebugManifest
      > Task :mergeDebugShaders
      > Task :compileDebugShaders NO-SOURCE
      > Task :generateDebugAssets UP-TO-DATE
      > Task :mergeDebugAssets
      > Task :compressDebugAssets
      > Task :processDebugJavaRes NO-SOURCE
      > Task :checkDebugDuplicateClasses
      > Task :mergeDebugJavaResource
      > Task :mergeLibDexDebug
      > Task :mergeDebugJniLibFolders
      > Task :validateSigningDebug
      > Task :writeDebugAppMetadata
      > Task :writeDebugSigningConfigVersions
      > Task :processDebugManifestForPackage
      > Task :desugarDebugFileDependencies
      > Task :mergeExtDexDebug
      > Task :mergeDebugNativeLibs
      > Task :processDebugResources FAILED
      > Task :stripDebugDebugSymbols
      Unable to strip the following libraries, packaging them as they are: libQt6Core_armeabi-v7a.so, libQt6Gui_armeabi-v7a.so, libQt6Network_armeabi-v7a.so, libQt6OpenGL_armeabi-v7a.so, libQt6QmlModels_armeabi-v7a.so, libQt6QmlWorkerScript_armeabi-v7a.so, libQt6Qml_armeabi-v7a.so, libQt6Quick3DUtils_armeabi-v7a.so, libQt6QuickControls2Impl_armeabi-v7a.so, libQt6QuickControls2_armeabi-v7a.so, libQt6QuickLayouts_armeabi-v7a.so, libQt6QuickShapes_armeabi-v7a.so, libQt6QuickTemplates2_armeabi-v7a.so, libQt6Quick_armeabi-v7a.so, libQt6SensorsQuick_armeabi-v7a.so, libQt6Sensors_armeabi-v7a.so, libQt6Svg_armeabi-v7a.so, libQt6VirtualKeyboard_armeabi-v7a.so, libc++_shared.so, libplugins_iconengines_qsvgicon_armeabi-v7a.so, libplugins_imageformats_qgif_armeabi-v7a.so, libplugins_imageformats_qicns_armeabi-v7a.so, libplugins_imageformats_qico_armeabi-v7a.so, libplugins_imageformats_qjpeg_armeabi-v7a.so, libplugins_imageformats_qsvg_armeabi-v7a.so, libplugins_imageformats_qtga_armeabi-v7a.so, libplugins_imageformats_qtiff_armeabi-v7a.so, libplugins_imageformats_qwbmp_armeabi-v7a.so, libplugins_imageformats_qwebp_armeabi-v7a.so, libplugins_networkinformation_qandroidnetworkinformation_armeabi-v7a.so, libplugins_platforminputcontexts_qtvirtualkeyboardplugin_armeabi-v7a.so, libplugins_platforms_qtforandroid_armeabi-v7a.so, libplugins_qmltooling_qmldbg_debugger_armeabi-v7a.so, libplugins_qmltooling_qmldbg_inspector_armeabi-v7a.so, libplugins_qmltooling_qmldbg_local_armeabi-v7a.so, libplugins_qmltooling_qmldbg_messages_armeabi-v7a.so, libplugins_qmltooling_qmldbg_native_armeabi-v7a.so, libplugins_qmltooling_qmldbg_nativedebugger_armeabi-v7a.so, libplugins_qmltooling_qmldbg_preview_armeabi-v7a.so, libplugins_qmltooling_qmldbg_profiler_armeabi-v7a.so, libplugins_qmltooling_qmldbg_quick3dprofiler_armeabi-v7a.so, libplugins_qmltooling_qmldbg_quickprofiler_armeabi-v7a.so, libplugins_qmltooling_qmldbg_server_armeabi-v7a.so, libplugins_qmltooling_qmldbg_tcp_armeabi-v7a.so, libplugins_sensors_qtsensors_android_armeabi-v7a.so, libplugins_sensors_qtsensors_dummy_armeabi-v7a.so, libplugins_sensors_qtsensors_generic_armeabi-v7a.so, libplugins_tls_qcertonlybackend_armeabi-v7a.so, libplugins_tls_qopensslbackend_armeabi-v7a.so, libqml_QtQml_Base_qmlplugin_armeabi-v7a.so, libqml_QtQml_Models_modelsplugin_armeabi-v7a.so, libqml_QtQml_WorkerScript_workerscriptplugin_armeabi-v7a.so, libqml_QtQml_qmlmetaplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Basic_impl_qtquickcontrols2basicstyleimplplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Basic_qtquickcontrols2basicstyleplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Fusion_impl_qtquickcontrols2fusionstyleimplplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Fusion_qtquickcontrols2fusionstyleplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Imagine_impl_qtquickcontrols2imaginestyleimplplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Imagine_qtquickcontrols2imaginestyleplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Material_impl_qtquickcontrols2materialstyleimplplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Material_qtquickcontrols2materialstyleplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Universal_impl_qtquickcontrols2universalstyleimplplugin_armeabi-v7a.so, libqml_QtQuick_Controls_Universal_qtquickcontrols2universalstyleplugin_armeabi-v7a.so, libqml_QtQuick_Controls_impl_qtquickcontrols2implplugin_armeabi-v7a.so, libqml_QtQuick_Controls_qtquickcontrols2plugin_armeabi-v7a.so, libqml_QtQuick_Layouts_qquicklayoutsplugin_armeabi-v7a.so, libqml_QtQuick_Shapes_qmlshapesplugin_armeabi-v7a.so, libqml_QtQuick_Templates_qtquicktemplates2plugin_armeabi-v7a.so, libqml_QtQuick_Window_quickwindowplugin_armeabi-v7a.so, libqml_QtQuick_qtquick2plugin_armeabi-v7a.so, libqml_QtSensors_sensorsquickplugin_armeabi-v7a.so, libsensorsshowcase_armeabi-v7a.so.
      FAILURE: Build failed with an exception.
      * What went wrong:
      Execution failed for task ':processDebugResources'.
      > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
         > Android resource linking failed
           /home/qt/RTA/Qt_6.5.1/Examples/Qt-6.5.1/sensors/sensorsshowcase/bld_armeabi-v7a/android-build/build/intermediates/packaged_manifests/debug/AndroidManifest.xml:72: error: resource xml/qtprovider_paths (aka org.qtproject.example.sensorsshowcase:xml/qtprovider_paths) not found.
           error: failed processing manifest.
      * 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 2s
      26 actionable tasks: 26 executed
      Building the android package failed!
        -- For more information, run this command with --verbose.
      ninja: build stopped: subcommand failed. 

      Example was compiled with Qt6.5.0.

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              joaijala Johanna Äijälä
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes