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. Build android project is error, No Android architecture (ABI) is set by the project.
Forum Updated to NodeBB v4.3 + New Features

Build android project is error, No Android architecture (ABI) is set by the project.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 2.5k 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.
  • P Offline
    P Offline
    printfne
    wrote on last edited by
    #1

    my qtcreator kits have a warning .
    device type is not supported by qt version.

    enter image description here

    As the picture above shows, this kit has a yellow warning, when I create a new project, if I use this kit,and I want to run. I will get this error.

    No Android architecture (ABI) is set by the project.
    Error while building/deploying project Test (kit: Android)
    When executing step "Deploy to Android device"

    enter image description here

    If I use this it,and I want to build,I wall get this error.

    /usr/bin/uic: error while loading shared libraries: libicui18n.so.63: cannot open shared object file: No such file or directory
    make: *** [Makefile:530: ui_mainwindow.h] Error 127
    02:18:59: process "/usr/bin/make" exit,exit code 2 。
    Error while building/deploying project Test (kit: Android)
    The kit Android has configuration issues which might be the root cause for this problem.
    When executing step "Make"

    enter image description here

    If I use QT 5.15 build,I will get a error:

    Cannot set up "Build Android APK", not building an APK.
    Error while building/deploying project SS (kit: Android)
    The kit Android has configuration issues which might be the root cause for this problem.
    When executing step "Build Android APK"

    enter image description here

    midify Project->Build Android APK->SDK from API 31 to API 25,invalid.
    midify Kits->Manual->Android(this kit) -> QT VERSION from 5.15 to 5.12,invalid.
    if modify QT VERSION from 5.15 or 5.12 to None. warning device type is not supported by qt version.
    disappears,and error info The error message becomes

    No Qt version configured.
    Error while building/deploying project Test (kit: Android)
    When executing step "qmake"

    Use a physical phone instead of a virtual one,invalid.
    The mobile phone logo in the lower left corner, the yellow part will turn green after my mobile phone is turned on, but the error message remains unchanged

    my creator install process:
    sudo pacman -S qt5-base qt5-doc qtcreator
    my jdk version is 1.8
    my sdk ndk was obtained through automatic download of qtcreator,this is my sdk ndk info
    enter image description here
    my qtcreator is 8.0.2 ,based on qt 6.4.1,this is about info.
    enter image description here

    Am I missing some packages or version incompatible?

    English is not my native language, please forgive me if there is any wrong grammar, if you can give me some hints about this problem, I will be very grateful.

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

      jdk version 8 may be too low. Try jdk 11. Set-up environment variables for android build. Install qt libs for Android.
      https://doc.qt.io/qt-6/android-getting-started.html
      https://doc.qt.io/qt-6/cmake-variables-qtcore.html

      P 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        jdk version 8 may be too low. Try jdk 11. Set-up environment variables for android build. Install qt libs for Android.
        https://doc.qt.io/qt-6/android-getting-started.html
        https://doc.qt.io/qt-6/cmake-variables-qtcore.html

        P Offline
        P Offline
        printfne
        wrote on last edited by
        #3

        @JoeCFD
        When I try modify Device -> Android ->JDK location to modify jdk version, if I use jdk 8 or 11 or 19,is no error,but Kits->manual->Android warning remains device type is not supported by qt version. ,If I use jdk17 on Device -> Android ->JDK location I will get a error Android Setting have error : JDK path exits and is writable,and warning remains device type is not supported by qt version. .
        And I try add two variable in Project ->Build Environment
        Screenshot 2022-11-26 at 10-14-46 varable.png(PNG 图像,1920x1080 像素) — 缩放 (90%).png
        Problem persists and has not changed.
        My SDK NDK both install by QT,And my abd and gdb can work,So I didn't try to install abd and gdb dependencies,such as libstdc++6 libncurses5 libsdl1.2debian ,and my arch haven't this package
        And I try export ANDROID_NDK_ROOT ,but it doesn't seem to work

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

          You can not use JDK 17. The latest JDK supported on Android is 11.
          Click Projects->Build->Build Steps->qmake -- details to select ABIs. I think it is better to select arm64-v8a for 64 bit machines.

          P 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            You can not use JDK 17. The latest JDK supported on Android is 11.
            Click Projects->Build->Build Steps->qmake -- details to select ABIs. I think it is better to select arm64-v8a for 64 bit machines.

            P Offline
            P Offline
            printfne
            wrote on last edited by
            #5

            @JoeCFD
            c2adbce3-e084-47d7-a1ae-54c460f2e629-图片.png

            I didn't find these ABIs because I'm missing something, and I hope you can tell me what to do

            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