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. My first android app: error deploying
Forum Updated to NodeBB v4.3 + New Features

My first android app: error deploying

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 1.2k Views 2 Watching
  • 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by
    #1

    Hi,

    I am trying to make an android app with QtCreator under Linux. I set up the android sdk and ndk, and compiling is working, but I then get an error in the deployment step:
    "Cannot find the android build step. Error while building/deploying project test (kit: Android for x86 (Clang Qt 5.12.0 for Android x86))
    When executing step "Deploy to Android device"

    So I have several questions:

    • Is the Kit Android for x86 the right one? (x86 is the build or target platform?)
    • What do I need to do to make deployment work?
    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxwell31
      wrote on last edited by
      #2

      If I connect my phone via a usb cable, and in the deploy configuartions try to select it, it is listes with its id, but says abi is incompatible, device supports abis: .

      K 1 Reply Last reply
      0
      • K Offline
        K Offline
        KoneTaH
        wrote on last edited by KoneTaH
        #3

        Are you sure that your Android device's arch is x86 and not ARM? If it is ARM device, you should select armv7 or arm64 as target, not x86.

        1 Reply Last reply
        0
        • M maxwell31

          If I connect my phone via a usb cable, and in the deploy configuartions try to select it, it is listes with its id, but says abi is incompatible, device supports abis: .

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @maxwell31 said in My first android app: error deploying:

          If I connect my phone via a usb cable, and in the deploy configuartions try to select it, it is listes with its id, but says abi is incompatible, device supports abis: .

          Looks like you have the wrong tool chain chosen. However, that depends on what you have.
          x86 kit I can use only for x86 AVDs which are recommended because they are faster on a desktop.

          For my phone the armeabi toolchain is the correct. You can try and see the "Select Android Device" dialog you need to check the second line for your it tells you the required toolchain. You have to install the armeabi toolchain for this to show up.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1
          • M Offline
            M Offline
            maxwell31
            wrote on last edited by maxwell31
            #5

            Ok, so I have ARM on my phone, but I was not sure about which toolchain to use. But even if I use the armeabi-v7a toolchain, I get the same error. Or do I need a different toolchain?

            So If I click on run, I now get a select device window, but it says that the abi is incompatible

            K 1 Reply Last reply
            0
            • M maxwell31

              Ok, so I have ARM on my phone, but I was not sure about which toolchain to use. But even if I use the armeabi-v7a toolchain, I get the same error. Or do I need a different toolchain?

              So If I click on run, I now get a select device window, but it says that the abi is incompatible

              K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              @maxwell31

              You may need to enable the "developer options" on your phone. You can find under "settings"->"About phone". Tag a couple of times on to "Kernel version". It should tell you when the developer options are enabled.

              Probably under "Settings"->"additional settings" you should find an entry "Deveopler options" for more selections.
              Note: Names are not always the same on all devices. Evetually check with google for your device

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              1
              • M Offline
                M Offline
                maxwell31
                wrote on last edited by
                #7

                Hi,

                OK, I made an error in my developer settings. I set usb debugging to on, which is necessary, but my phone was in charging mode, and not usb file transfer mode

                1 Reply Last reply
                0

                • Login

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