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. Can't deploy to android
QtWS25 Last Chance

Can't deploy to android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 2.1k 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.
  • A Offline
    A Offline
    Arko
    wrote on last edited by Arko
    #1

    Hi i can't deploy to android any projects, even the example ones. My error is:

    Error while building/deploying project Test (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))
    When executing step "Deploy to Android device"
    

    My specs:
    Arch Linux
    android-ndk-r21.b-1
    gradle installed externally (qt creator didn't installed it)
    android-sdk installed by android studio, api: 29 revision 4 (android 10)
    open-ssl files installed via qt creator
    android-sdk files installed/updated via qt creator (to automatically have linked ndk files)
    Qt Creator 4.12.0
    Qt 5.14.2
    GCC 5.3.1.20160406, 64 bit
    Android phone architecture: x86

    Edit:

    android: {
        QMAKE_LFLAGS += -nostdlib++
    }
    

    don't work too.

    When I only build it's good, but when I click run and choose android device it gets error about deploying.
    I found this in compiler output: Install to device: No
    Full logs: https://pastebin.com/K3xexBxB

    jsulmJ A 2 Replies Last reply
    0
    • A Arko

      Hi i can't deploy to android any projects, even the example ones. My error is:

      Error while building/deploying project Test (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))
      When executing step "Deploy to Android device"
      

      My specs:
      Arch Linux
      android-ndk-r21.b-1
      gradle installed externally (qt creator didn't installed it)
      android-sdk installed by android studio, api: 29 revision 4 (android 10)
      open-ssl files installed via qt creator
      android-sdk files installed/updated via qt creator (to automatically have linked ndk files)
      Qt Creator 4.12.0
      Qt 5.14.2
      GCC 5.3.1.20160406, 64 bit
      Android phone architecture: x86

      Edit:

      android: {
          QMAKE_LFLAGS += -nostdlib++
      }
      

      don't work too.

      When I only build it's good, but when I click run and choose android device it gets error about deploying.
      I found this in compiler output: Install to device: No
      Full logs: https://pastebin.com/K3xexBxB

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

      @Arko You should post the actual error (it should be before the lines you posted)

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

      1 Reply Last reply
      0
      • A Arko

        Hi i can't deploy to android any projects, even the example ones. My error is:

        Error while building/deploying project Test (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))
        When executing step "Deploy to Android device"
        

        My specs:
        Arch Linux
        android-ndk-r21.b-1
        gradle installed externally (qt creator didn't installed it)
        android-sdk installed by android studio, api: 29 revision 4 (android 10)
        open-ssl files installed via qt creator
        android-sdk files installed/updated via qt creator (to automatically have linked ndk files)
        Qt Creator 4.12.0
        Qt 5.14.2
        GCC 5.3.1.20160406, 64 bit
        Android phone architecture: x86

        Edit:

        android: {
            QMAKE_LFLAGS += -nostdlib++
        }
        

        don't work too.

        When I only build it's good, but when I click run and choose android device it gets error about deploying.
        I found this in compiler output: Install to device: No
        Full logs: https://pastebin.com/K3xexBxB

        A Offline
        A Offline
        Arko
        wrote on last edited by
        #3

        @jsulm Done, I was expanding my post and adding new information and now there's log too.

        jsulmJ 1 Reply Last reply
        0
        • A Arko

          @jsulm Done, I was expanding my post and adding new information and now there's log too.

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

          @Arko This is actual error:

          adb: failed to install /home/adrian/Projects/build-Test-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_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 to device failed!
          

          It means the ABI you used to build your app does not match the one of your device.

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

          A 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Arko This is actual error:

            adb: failed to install /home/adrian/Projects/build-Test-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_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 to device failed!
            

            It means the ABI you used to build your app does not match the one of your device.

            A Offline
            A Offline
            Arko
            wrote on last edited by
            #5

            @jsulm Oh okay, I didn't change it so it's probably set for wrong architecture by default. Do you know where I can change that? (Or what do I need to install)

            jsulmJ 1 Reply Last reply
            0
            • A Arko

              @jsulm Oh okay, I didn't change it so it's probably set for wrong architecture by default. Do you know where I can change that? (Or what do I need to install)

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

              @Arko I don't develop for Android, but as far as I know you can define the target ABI somewhere in QtCreator.

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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Arko
                wrote on last edited by
                #7

                Ok, I tried to search for it but I couldn't find it. Does anyone know how to change target android architecture for building apks?

                Ahmed Yarub Hani Al NuaimiA 1 Reply Last reply
                0
                • A Arko

                  Ok, I tried to search for it but I couldn't find it. Does anyone know how to change target android architecture for building apks?

                  Ahmed Yarub Hani Al NuaimiA Offline
                  Ahmed Yarub Hani Al NuaimiA Offline
                  Ahmed Yarub Hani Al Nuaimi
                  wrote on last edited by
                  #8

                  @Arko Click on Project in the left pane then choose Build under your Build & Run configuration. In the Build Steps, look for "qmake:". Expand it by clicking on Details and choose the target ABI.

                  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