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
Forum Updated to NodeBB v4.3 + New Features

Error when deploying Android project

Scheduled Pinned Locked Moved Solved Mobile and Embedded
12 Posts 4 Posters 6.0k 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.
  • N Offline
    N Offline
    no_1imit
    wrote on 7 Jan 2020, 09:21 last edited by
    #1

    Hi, I'm using Qt 5.14, SDK 26.1.1 and NDK 20.1
    when I build project (default project) everything is okay but when I run it I get this error

    BUILD SUCCESSFUL in 8s
    25 actionable tasks: 2 executed, 23 up-to-date
    adb: failed to install /home/amn/Programs/android/build-untitled5-Android_x86-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 to device failed!
    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-untitled5-Android_x86-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
    Performing Streamed Install
    04:15:18: The process "/home/amn/opt/Qt5/5.14.0/android/bin/androiddeployqt" exited with code 16.
    04:15:18: Pulling files necessary for debugging.
    04:15:18: 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-untitled5-Android_x86-Debug/app_process".
    04:15:18: 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-untitled5-Android_x86-Debug/app_process".
    04:15:18: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker /home/amn/Programs/android/build-untitled5-Android_x86-Debug/linker".
    04:15:18: 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-untitled5-Android_x86-Debug/libc.so".
    Error while building/deploying project untitled5 (kit: Android x86)
    When executing step "Deploy to Android device"
    04:15:18: Elapsed time: 00:19.
    

    what's wrong?

    J 1 Reply Last reply 7 Jan 2020, 09:24
    0
    • N no_1imit
      7 Jan 2020, 09:21

      Hi, I'm using Qt 5.14, SDK 26.1.1 and NDK 20.1
      when I build project (default project) everything is okay but when I run it I get this error

      BUILD SUCCESSFUL in 8s
      25 actionable tasks: 2 executed, 23 up-to-date
      adb: failed to install /home/amn/Programs/android/build-untitled5-Android_x86-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 to device failed!
      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-untitled5-Android_x86-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
      Performing Streamed Install
      04:15:18: The process "/home/amn/opt/Qt5/5.14.0/android/bin/androiddeployqt" exited with code 16.
      04:15:18: Pulling files necessary for debugging.
      04:15:18: 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-untitled5-Android_x86-Debug/app_process".
      04:15:18: 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-untitled5-Android_x86-Debug/app_process".
      04:15:18: Package deploy: Running command "/home/amn/opt/android-sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker /home/amn/Programs/android/build-untitled5-Android_x86-Debug/linker".
      04:15:18: 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-untitled5-Android_x86-Debug/libc.so".
      Error while building/deploying project untitled5 (kit: Android x86)
      When executing step "Deploy to Android device"
      04:15:18: Elapsed time: 00:19.
      

      what's wrong?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 7 Jan 2020, 09:24 last edited by
      #2

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

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

      J 1 Reply Last reply 7 Jan 2020, 09:30
      1
      • J jsulm
        7 Jan 2020, 09:24

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

        J Online
        J Online
        J.Hilk
        Moderators
        wrote on 7 Jan 2020, 09:30 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 7 Jan 2020, 09:47
        0
        • N Offline
          N Offline
          no_1imit
          wrote on 7 Jan 2020, 09:33 last edited by
          #4

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

          J 1 Reply Last reply 7 Jan 2020, 09:43
          0
          • N no_1imit
            7 Jan 2020, 09:33

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 7 Jan 2020, 09:43 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 J.Hilk
              7 Jan 2020, 09:30

              @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 7 Jan 2020, 09:47 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.
              
              J K 2 Replies Last reply 7 Jan 2020, 09:51
              0
              • N no_1imit
                7 Jan 2020, 09:47

                @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.
                
                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 7 Jan 2020, 09:51 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 1 Reply Last reply 7 Jan 2020, 09:54
                0
                • J jsulm
                  7 Jan 2020, 09:51

                  @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 Online
                  J Online
                  J.Hilk
                  Moderators
                  wrote on 7 Jan 2020, 09:54 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.

                  J 1 Reply Last reply 7 Jan 2020, 09:56
                  1
                  • J J.Hilk
                    7 Jan 2020, 09:54

                    @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!?

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 7 Jan 2020, 09:56 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
                      7 Jan 2020, 09:47

                      @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.
                      
                      K Offline
                      K Offline
                      KroMignon
                      wrote on 7 Jan 2020, 09:58 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 7 Jan 2020, 09:59 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

                        J 1 Reply Last reply 7 Jan 2020, 10:00
                        0
                        • N no_1imit
                          7 Jan 2020, 09:59

                          @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

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 7 Jan 2020, 10:00 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

                          1/12

                          7 Jan 2020, 09:21

                          • Login

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