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. Qt Android Application failed to run on emulator.

Qt Android Application failed to run on emulator.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 2 Posters 2.6k 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.
  • L Offline
    L Offline
    LimeLight
    wrote on last edited by LimeLight
    #1

    I am a beginner in Qt6 Android development. I had recently setup the environment. I downloaded android studio and setup the sdk and the emulator there. After that I setup the qt environment but when I ran my first app (just a test app) I ran into this error

    :-1: warning: Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
    :-1: error:

    :-1: warning: Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

    :-1: warning: Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
    :-1: error:

    :-1: error: adb: failed to install D:/QTProjects/build-AndroidApp-Android_Qt_6_3_1_Clang_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]

    :-1: error: Installing to device failed!

    :-1: error: The process "D:\QT\6.3.1\mingw_64\bin\androiddeployqt.exe" exited with code 16.
    :-1: error: Installing the app failed with an unknown error.
    :-1: error: The command "D:\Android\AndroidSDK\platform-tools\adb.exe -s emulator-5554 pull /system/bin/app_process32 D:/QTProjects/build-AndroidApp-Android_Qt_6_3_1_Clang_x86-Debug/app_process" terminated with exit code 1.
    :-1: error: The command "D:\Android\AndroidSDK\platform-tools\adb.exe -s emulator-5554 pull /system/bin/linker D:/QTProjects/build-AndroidApp-Android_Qt_6_3_1_Clang_x86-Debug/linker" terminated with exit code 1.
    :-1: error: Package deploy: Failed to pull "/system/bin/linker" to "D:/QTProjects/build-AndroidApp-Android_Qt_6_3_1_Clang_x86-Debug/linker".
    :-1: error: The command "D:\Android\AndroidSDK\platform-tools\adb.exe -s emulator-5554 pull /system/lib/libc.so D:/QTProjects/build-AndroidApp-Android_Qt_6_3_1_Clang_x86-Debug/libc.so" terminated with exit code 1.
    :-1: error: Package deploy: Failed to pull "/system/lib/libc.so" to "D:/QTProjects/build-AndroidApp-Android_Qt_6_3_1_Clang_x86-Debug/libc.so".

    Here's the image
    5f4ee47f-066a-4f58-aeba-9350c5f50ab3-image.png

    I am using Clang x86 kit for emulator testing...
    Can anyone help me resolve this problem...

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      how do you build it? On Qt Creator?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LimeLight
        wrote on last edited by LimeLight
        #3

        @JoeCFD Yes I build it on Qt Creator

        1 Reply Last reply
        0
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          can you post your settings(pic) on Tools->Options->Devices->Android tab

          L 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            can you post your settings(pic) on Tools->Options->Devices->Android tab

            L Offline
            L Offline
            LimeLight
            wrote on last edited by LimeLight
            #5

            @JoeCFD a3098964-6ff3-4dc6-b420-c90855d03d1f-image.png

            All the files are from android studio I just changed the download directory in the android studio before downloading

            1 Reply Last reply
            0
            • JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              Does your target device support jdk-17? I am using jdk11 for android 11/12.

              L 1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                Does your target device support jdk-17? I am using jdk11 for android 11/12.

                L Offline
                L Offline
                LimeLight
                wrote on last edited by
                #7

                @JoeCFD I dont know but I dont think jdk is causing any problem here

                1 Reply Last reply
                0
                • JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  Any mismatch can cause troubles. Maybe try jdk11 and ndk 21

                  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