Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31951

Apk files built with Qt can't be installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • Qt Creator 14.0.1
    • Android Support
    • Android
    • 2024wk50s3FOQtforAndroid

    Description

      I'm following the tutorial here: https://doc.qt.io/qtcreator/qtcreator-accelbubble-example.html. If I just try to build that without changing anything in my app, I get the following error:

      The process "C:\Qt\6.5.3\mingw_64\bin\androiddeployqt.exe" exited with code 16.

      My phone is a moto e(6i). Here is the compile output:

      14:20:27: Initializing deployment to Android device/simulator
      14:20:27: Deploying to ZE222KCCPV
      14:20:27: Running steps for project untitled1...
      14:20:27: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build C:/Users/glind/AppData/Local/Temp/build-untitled1 --target all
      [1/18 4.6/sec] Generating untitled1/Main.qml
      [2/18 3.5/sec] Generating .rcc/qmlcache/appuntitled1_qmlcache_loader.cpp
      [3/18 2.4/sec] Automatic MOC and UIC for target appuntitled1
      [4/18 2.7/sec] Running rcc for resource qmake_untitled1
      [5/18 3.3/sec] Running rcc for resource appuntitled1_raw_qml_0
      [6/18 3.7/sec] Running AUTOMOC file extraction for target appuntitled1
      [7/18 3.8/sec] Running moc --collect-json for target appuntitled1
      [8/18 2.5/sec] Automatic QML type registration for target appuntitled1
      [9/18 2.5/sec] Generating .rcc/qmlcache/appuntitled1_Main_qml.cpp
      [10/18 2.1/sec] Building CXX object CMakeFiles/appuntitled1.dir/appuntitled1_autogen/mocs_compilation.cpp.o
      [11/18 2.3/sec] Building CXX object CMakeFiles/appuntitled1.dir/.rcc/qrc_qmake_untitled1.cpp.o
      [12/18 2.2/sec] Building CXX object CMakeFiles/appuntitled1.dir/.rcc/qrc_appuntitled1_raw_qml_0.cpp.o
      [13/18 1.9/sec] Building CXX object CMakeFiles/appuntitled1.dir/appuntitled1_qmltyperegistrations.cpp.o
      [14/18 1.8/sec] Building CXX object CMakeFiles/appuntitled1.dir/main.cpp.o
      [15/18 1.8/sec] Building CXX object CMakeFiles/appuntitled1.dir/.rcc/qmlcache/appuntitled1_qmlcache_loader.cpp.o
      [16/18 1.9/sec] Building CXX object CMakeFiles/appuntitled1.dir/.rcc/qmlcache/appuntitled1_Main_qml.cpp.o
      [17/18 1.9/sec] Linking CXX shared module libappuntitled1_armeabi-v7a.so
      [18/18 2.0/sec] Copying appuntitled1 binary to apk folder
      14:20:36: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited normally.
      14:20:37: Starting: "C:\Qt\6.5.3\mingw_64\bin\androiddeployqt.exe" --input C:/Users/glind/AppData/Local/Temp/build-untitled1/android-appuntitled1-deployment-settings.json --output C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build --android-platform android-34 --jdk "C:/Program Files/Eclipse Adoptium/jdk-17.0.8.101-hotspot" --gradle --release
      Generating Android Package
        Input file: C:/Users/glind/AppData/Local/Temp/build-untitled1/android-appuntitled1-deployment-settings.json
        Output directory: C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build/
        Application binary: appuntitled1
        Android build platform: android-34
        Install to device: No
      Downloading https://services.gradle.org/distributions/gradle-8.0-bin.zip
      ...........10%............20%............30%............40%............50%............60%...........70%............80%............90%............100%
      
      Welcome to Gradle 8.0!
      
      For more details see https://docs.gradle.org/8.0/release-notes.html
      
      Starting a Gradle Daemon (subsequent builds will be faster)
      WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34
      
      This Android Gradle plugin (7.4.1) was tested up to compileSdk = 33
      
      This warning can be suppressed by adding
          android.suppressUnsupportedCompileSdk=34
      to this project's gradle.properties
      
      The build will continue, but you are strongly encouraged to update your project to
      use a newer Android Gradle Plugin that has been tested with compileSdk = 34
      > Task :preBuild UP-TO-DATE
      > Task :preReleaseBuild UP-TO-DATE
      > Task :compileReleaseAidl NO-SOURCE
      > Task :compileReleaseRenderscript NO-SOURCE
      > Task :generateReleaseBuildConfig
      > Task :javaPreCompileRelease
      > Task :checkReleaseAarMetadata
      > Task :generateReleaseResValues
      > Task :mapReleaseSourceSetPaths
      > Task :generateReleaseResources
      > Task :createReleaseCompatibleScreenManifests
      > Task :extractDeepLinksRelease
      
      > Task :processReleaseMainManifest
      package="org.qtproject.example.appuntitled1" found in source AndroidManifest.xml: C:\Users\glind\AppData\Local\Temp\build-untitled1\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 :mergeReleaseResources
      > Task :processReleaseManifest
      > Task :extractProguardFiles
      > Task :writeReleaseApplicationId
      > Task :analyticsRecordingRelease
      > Task :mergeReleaseJniLibFolders
      > Task :checkReleaseDuplicateClasses
      > Task :mergeReleaseNativeLibs
      > Task :desugarReleaseFileDependencies
      > Task :mergeReleaseShaders
      > Task :compileReleaseShaders NO-SOURCE
      > Task :generateReleaseAssets UP-TO-DATE
      > Task :mergeReleaseAssets
      > Task :mergeExtDexRelease
      > Task :processReleaseJavaRes NO-SOURCE
      > Task :compressReleaseAssets
      > Task :collectReleaseDependencies
      > Task :sdkReleaseDependencyData
      > Task :mergeReleaseJavaResource
      > Task :stripReleaseDebugSymbols
      > Task :writeReleaseAppMetadata
      > Task :writeReleaseSigningConfigVersions
      > Task :mergeReleaseArtProfile
      > Task :processReleaseManifestForPackage
      > Task :extractReleaseNativeSymbolTables
      > Task :mergeReleaseNativeDebugMetadata
      > Task :processReleaseResources
      
      > Task :compileReleaseJavaWithJavac
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      
      > Task :dexBuilderRelease
      > Task :mergeDexRelease
      > Task :compileReleaseArtProfile
      > Task :optimizeReleaseResources
      > Task :packageRelease
      > Task :createReleaseApkListingFileRedirect
      > Task :lintVitalAnalyzeRelease
      > Task :lintVitalReportRelease
      > Task :lintVitalRelease
      > Task :assembleRelease
      
      BUILD SUCCESSFUL in 2m 22s
      42 actionable tasks: 42 executed
      Android package built successfully in 157.333 ms.
        -- File: C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build//build/outputs/apk/release/android-build-release-unsigned.apk
      14:23:14: The process "C:\Qt\6.5.3\mingw_64\bin\androiddeployqt.exe" exited normally.
      14:23:14: Starting: "C:\Qt\6.5.3\mingw_64\bin\androiddeployqt.exe --verbose --output C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build --no-build --input C:/Users/glind/AppData/Local/Temp/build-untitled1/android-appuntitled1-deployment-settings.json --gradle --release --reinstall --device ZE222KCCPV"
      Generating Android Package
        Input file: C:/Users/glind/AppData/Local/Temp/build-untitled1/android-appuntitled1-deployment-settings.json
        Output directory: C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build/
        Application binary: appuntitled1
        Android build platform: android-34
        Install to device: ZE222KCCPV
      Detecting dependencies of application.
      Reading dependencies from C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build//libs/armeabi-v7a/libappuntitled1_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Core_armeabi-v7a.so
      Appending dependency: lib/libQt6Core_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
      Appending dependency: lib/libQt6Gui_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
      Appending dependency: lib/libQt6Network_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency: lib/libQt6OpenGL_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
      Appending dependency: lib/libQt6Qml_armeabi-v7a.so
      Reading Android dependencies for Qt6Qml_armeabi-v7a
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_debugger_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_debugger_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_inspector_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Quick_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency: lib/libQt6Quick_armeabi-v7a.so
      Reading Android dependencies for Qt6Quick_armeabi-v7a
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_inspector_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_local_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_local_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_messages_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_messages_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_native_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_native_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_nativedebugger_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_nativedebugger_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_preview_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_preview_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_profiler_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_profiler_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_quickprofiler_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_quickprofiler_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_server_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_server_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/qmltooling/libplugins_qmltooling_qmldbg_tcp_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_tcp_armeabi-v7a.so
      Appending dependency: lib/libQt6QmlModels_armeabi-v7a.so
      Reading Android dependencies for Qt6Core_armeabi-v7a
      Reading Android dependencies for Qt6Gui_armeabi-v7a
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/platforminputcontexts/libplugins_platforminputcontexts_qtvirtualkeyboardplugin_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
            lib/libQt6VirtualKeyboard_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6VirtualKeyboard_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
      Appending dependency: lib/libQt6VirtualKeyboard_armeabi-v7a.so
      No android dependencies for Qt6VirtualKeyboard_armeabi-v7a
      Appending dependency from xml: plugins/platforminputcontexts/libplugins_platforminputcontexts_qtvirtualkeyboardplugin_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/generic/libplugins_generic_qinsighttracker_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6InsightTracker_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Sql_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6InsightTracker_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Sql_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Sql_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
      Appending dependency: lib/libQt6Sql_armeabi-v7a.so
      Reading Android dependencies for Qt6Sql_armeabi-v7a
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/sqldrivers/libplugins_sqldrivers_qsqlite_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Sql_armeabi-v7a.so
      Appending dependency from xml: plugins/sqldrivers/libplugins_sqldrivers_qsqlite_armeabi-v7a.so
      Appending dependency: lib/libQt6InsightTracker_armeabi-v7a.so
      No android dependencies for Qt6InsightTracker_armeabi-v7a
      Appending dependency from xml: plugins/generic/libplugins_generic_qinsighttracker_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Svg_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6Svg_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency: lib/libQt6Svg_armeabi-v7a.so
      No android dependencies for Qt6Svg_armeabi-v7a
      Appending dependency from xml: plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qgif_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qgif_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qicns_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qicns_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qico_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qico_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qjpeg_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qjpeg_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Svg_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qtga_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtga_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qtiff_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtiff_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qwbmp_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwbmp_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/imageformats/libplugins_imageformats_qwebp_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwebp_armeabi-v7a.so
      Reading Android dependencies for Qt6Network_armeabi-v7a
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/networkinformation/libplugins_networkinformation_qandroidnetworkinformation_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
      Appending dependency from xml: plugins/networkinformation/libplugins_networkinformation_qandroidnetworkinformation_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/tls/libplugins_tls_qcertonlybackend_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
      Appending dependency from xml: plugins/tls/libplugins_tls_qcertonlybackend_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/tls/libplugins_tls_qopensslbackend_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
      Appending dependency from xml: plugins/tls/libplugins_tls_qopensslbackend_armeabi-v7a.so
      No android dependencies for Qt6OpenGL_armeabi-v7a
      No android dependencies for Qt6QmlModels_armeabi-v7a
      Reading dependencies from C:/Qt/6.5.3/android_armv7/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
      Scanning for QML imports.
      Running qmlimportscanner with the following command: C:/Qt/6.5.3/mingw_64/./bin/qmlimportscanner.exe -rootPath C:/Users/glind/AppData/Local/Temp/untitled1/ -rootPath C:/Users/glind/AppData/Local/Temp/untitled1/ -importPath C:/Qt/6.5.3/android_armv7/./qml C:/Qt/6.5.3/android_armv7/qml C:/Users/glind/AppData/Local/Temp/build-untitled1/untitled1 C:/Users/glind/AppData/Local/Temp/build-untitled1 C:/Users/glind/AppData/Local/Temp/untitled1/ C:/Users/glind/AppData/Local/Temp/untitled1/
        -- Adding 'C:/Qt/6.5.3/android_armv7/qml/QtQuick' as QML dependency
      Reading dependencies from C:/Qt/6.5.3/android_armv7/qml/QtQuick/libqml_QtQuick_qtquick2plugin_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Gui_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6OpenGL_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
            lib/libQt6Quick_armeabi-v7a.so
        -- Adding 'C:/Qt/6.5.3/android_armv7/qml/QtQml' as QML dependency
      Reading dependencies from C:/Qt/6.5.3/android_armv7/qml/QtQml/libqml_QtQml_qmlmetaplugin_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
        -- Adding 'C:/Qt/6.5.3/android_armv7/qml/QtQml/Base' as QML dependency
      Reading dependencies from C:/Qt/6.5.3/android_armv7/qml/QtQml/Base/libqml_QtQml_Base_qmlplugin_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
        -- Adding 'C:/Qt/6.5.3/android_armv7/qml/QtQml/Models' as QML dependency
      Reading dependencies from C:/Qt/6.5.3/android_armv7/qml/QtQml/Models/libqml_QtQml_Models_modelsplugin_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6QmlModels_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
        -- Adding 'C:/Qt/6.5.3/android_armv7/qml/QtQml/WorkerScript' as QML dependency
      Reading dependencies from C:/Qt/6.5.3/android_armv7/qml/QtQml/WorkerScript/libqml_QtQml_WorkerScript_workerscriptplugin_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6QmlWorkerScript_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Reading dependencies from C:/Qt/6.5.3/android_armv7/lib/libQt6QmlWorkerScript_armeabi-v7a.so
            lib/libQt6Core_armeabi-v7a.so
            lib/libQt6Network_armeabi-v7a.so
            lib/libQt6Qml_armeabi-v7a.so
      Appending dependency: lib/libQt6QmlWorkerScript_armeabi-v7a.so
      No android dependencies for Qt6QmlWorkerScript_armeabi-v7a
      Copying 53 dependencies from Qt into package.
      Copying STL library
        -- Skipping file C:/Users/glind/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib//arm-linux-androideabi/libc++_shared.so. Same or newer file already in place.
      Skipping createRCC
      adb: failed to install C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build//build/outputs/apk/release/android-build-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1063105338.tmp/base.apk: Attempt to get length of null array]
      Installing Android package to device.
      Running command "C:/Users/glind/AppData/Local/Android/Sdk/platform-tools/adb.exe -s ZE222KCCPV  install -r C:/Users/glind/AppData/Local/Temp/build-untitled1/android-build//build/outputs/apk/release/android-build-release-unsigned.apk"
      Performing Streamed Install
      Installing to device failed!
      14:23:24: The process "C:\Qt\6.5.3\mingw_64\bin\androiddeployqt.exe" exited with code 16.
      14:23:24: Installing the app failed with an unknown error.
      14:23:24: Pulling files necessary for debugging.
      14:23:24: Package deploy: Running command "C:\Users\glind\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZE222KCCPV pull /system/bin/app_process C:\Users\glind\AppData\Local\Temp\build-untitled1\android-app-process\app_process".
      14:23:24: Package deploy: Running command "C:\Users\glind\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZE222KCCPV pull /system/bin/app_process32 C:\Users\glind\AppData\Local\Temp\build-untitled1\android-app-process\app_process".
      14:23:24: Package deploy: Running command "C:\Users\glind\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZE222KCCPV pull /system/bin/linker C:\Users\glind\AppData\Local\Temp\build-untitled1\android-app-process\linker".
      14:23:24: Package deploy: Running command "C:\Users\glind\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZE222KCCPV pull /system/lib/libc.so C:\Users\glind\AppData\Local\Temp\build-untitled1\android-app-process\libc.so".
      Error while building/deploying project untitled1 (kit: Android Qt 6.5.3 Clang armeabi-v7a)
      When executing step "Deploy to Android device"
      14:23:24: Elapsed time: 02:57.
      

      If I try to manually use adb to install the apk under /android-build/build/outputs/apk/release, I get the following error:

      Performing Streamed Install
      adb: failed to install android-build-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl549903524.tmp/base.apk: Attempt to get length of null array]
      

      This is if I don't enable signing. If I enable signing as explained at https://doc.qt.io/qtcreator/creator-deploying-android.html#signing-android-packages, I get a different error:

      Unable to open 'C:/some/path/android-build-release-unsigned.apk' for verification
      Unable to open 'C:/some/path/android-build-release-unsigned.apk' as zip archive
      zipalign command failed.
      

      The file android-build-release-unsigned.apk doesn't exist, it's called just android-build-release.apk. But if I try to install the signed apk manually though adb, adb says "success" and the app shows up on my home screen, but when I click on it it says "this app isn't installed".

      Here is a git repo with the complete code that causes this issue: https://github.com/DonaldDuck313/untitled1 (this is just a "new Qt Quick application" created with Qt Creator's project wizard with no changes). This issue can be reproduced by attempting to run this code on a moto e(6i) (it can probably also be reproduced on other devices but I don't have any other Android devices so I haven't tried).

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            donaldduck Donald Duck
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes