Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error when deploying Android project
Qt 6.11 is out! See what's new in the release blog

Error when deploying Android project

Scheduled Pinned Locked Moved Solved Mobile and Embedded
12 Posts 4 Posters 8.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jsulmJ jsulm

    @no_1imit Which exact Qt version do you use? There are ARM and x86 Android versions.

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #3

    @jsulm
    from the log:

    Error while building/deploying project untitled5 (kit: Android x86)
    When executing step "Deploy to Android device"
    04:15:18: Elapsed time: 00:19.
    

    As most android devices are arm based, that is most likely the issue here


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    N 1 Reply Last reply
    0
    • N Offline
      N Offline
      no_1imit
      wrote on last edited by
      #4

      ARM
      Screenshot_2020-01-07_04-31-01.png

      jsulmJ 1 Reply Last reply
      0
      • N no_1imit

        ARM
        Screenshot_2020-01-07_04-31-01.png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #5

        @no_1imit As @J-Hilk pointed out you're using x86 (see the log you posted) which is not going to work on ARM.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @jsulm
          from the log:

          Error while building/deploying project untitled5 (kit: Android x86)
          When executing step "Deploy to Android device"
          04:15:18: Elapsed time: 00:19.
          

          As most android devices are arm based, that is most likely the issue here

          N Offline
          N Offline
          no_1imit
          wrote on last edited by
          #6

          @J-Hilk I was testing kits but I still have problem with ARM (default detected)
          there is the error

          BUILD SUCCESSFUL in 7s
          25 actionable tasks: 2 executed, 23 up-to-date
          adb: failed to install /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
          Installing Android package to device.
          Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554  install -r /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
          Performing Streamed Install
          Installing to device failed!
          04:26:58: The process "/home/amn/opt/Qt5/5.14.0/android/bin/androiddeployqt" exited with code 16.
          04:26:58: Pulling files necessary for debugging.
          04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/app_process".
          04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process32 /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/app_process".
          04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/linker".
          04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/libc.so".
          Error while building/deploying project untitled7 (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.0 for Android))
          When executing step "Deploy to Android device"
          04:26:58: Elapsed time: 00:26.
          
          jsulmJ KroMignonK 2 Replies Last reply
          0
          • N no_1imit

            @J-Hilk I was testing kits but I still have problem with ARM (default detected)
            there is the error

            BUILD SUCCESSFUL in 7s
            25 actionable tasks: 2 executed, 23 up-to-date
            adb: failed to install /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
            Installing Android package to device.
            Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554  install -r /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
            Performing Streamed Install
            Installing to device failed!
            04:26:58: The process "/home/amn/opt/Qt5/5.14.0/android/bin/androiddeployqt" exited with code 16.
            04:26:58: Pulling files necessary for debugging.
            04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/app_process".
            04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process32 /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/app_process".
            04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/linker".
            04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/libc.so".
            Error while building/deploying project untitled7 (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.0 for Android))
            When executing step "Deploy to Android device"
            04:26:58: Elapsed time: 00:26.
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @no_1imit You really should rename your Kit as "Android for armeabi-v7a,arm64-v8a,x86,x86_64" is simply confusing as a Kit can't be for both ARM and x86 at the same time!
            Can you post screenshot of your "Qt 5.14.0 for Android" from "Qt Versions" tab?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            J.HilkJ 1 Reply Last reply
            0
            • jsulmJ jsulm

              @no_1imit You really should rename your Kit as "Android for armeabi-v7a,arm64-v8a,x86,x86_64" is simply confusing as a Kit can't be for both ARM and x86 at the same time!
              Can you post screenshot of your "Qt 5.14.0 for Android" from "Qt Versions" tab?

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #8

              @jsulm said in Error when deploying Android project:

              @no_1imit You really should rename your Kit as "Android for armeabi-v7a,arm64-v8a,x86,x86_64" is simply confusing as a Kit can't be for both ARM and x86 at the same time!
              Can you post screenshot of your "Qt 5.14.0 for Android" from "Qt Versions" tab?

              Actually, I'm not so sure about that anymore.
              I haven't updated jet, but shouldn't the 5.14 update bring the unified AAB package support for android? That could reduce everything to one precompiled kit, if properly set up!?


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              jsulmJ 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @jsulm said in Error when deploying Android project:

                @no_1imit You really should rename your Kit as "Android for armeabi-v7a,arm64-v8a,x86,x86_64" is simply confusing as a Kit can't be for both ARM and x86 at the same time!
                Can you post screenshot of your "Qt 5.14.0 for Android" from "Qt Versions" tab?

                Actually, I'm not so sure about that anymore.
                I haven't updated jet, but shouldn't the 5.14 update bring the unified AAB package support for android? That could reduce everything to one precompiled kit, if properly set up!?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @J-Hilk Oh, I remember reading something about it now. Yes, could be.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • N no_1imit

                  @J-Hilk I was testing kits but I still have problem with ARM (default detected)
                  there is the error

                  BUILD SUCCESSFUL in 7s
                  25 actionable tasks: 2 executed, 23 up-to-date
                  adb: failed to install /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
                  Installing Android package to device.
                  Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554  install -r /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
                  Performing Streamed Install
                  Installing to device failed!
                  04:26:58: The process "/home/amn/opt/Qt5/5.14.0/android/bin/androiddeployqt" exited with code 16.
                  04:26:58: Pulling files necessary for debugging.
                  04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/app_process".
                  04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process32 /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/app_process".
                  04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/linker".
                  04:26:58: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /home/amn/Programs/android/build-untitled7-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Debug/libc.so".
                  Error while building/deploying project untitled7 (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.0 for Android))
                  When executing step "Deploy to Android device"
                  04:26:58: Elapsed time: 00:26.
                  
                  KroMignonK Offline
                  KroMignonK Offline
                  KroMignon
                  wrote on last edited by
                  #10

                  @no_1imit @jsulm @J-Hilk The last Qt for Android Kit is multi-platform, but you have to choose the active platform in "Projects".

                  Take a look at ==> https://www.kdab.com/qt-for-android-better-than-ever-before/

                  It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                  1 Reply Last reply
                  5
                  • N Offline
                    N Offline
                    no_1imit
                    wrote on last edited by
                    #11

                    @jsulm said in Error when deploying Android project:

                    Qt Versions

                    sorry I'm beginner. do you mean this page?
                    Screenshot_2020-01-07_04-58-02.png

                    jsulmJ 1 Reply Last reply
                    0
                    • N no_1imit

                      @jsulm said in Error when deploying Android project:

                      Qt Versions

                      sorry I'm beginner. do you mean this page?
                      Screenshot_2020-01-07_04-58-02.png

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @no_1imit Check what @KroMignon wrote

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved