Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Qt Android, can't compile for API 10

    General and Desktop
    2
    4
    2146
    Loading More Posts
    • 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.
    • O
      onimusha last edited by

      Hi, trying to compile for gingerbread 2.3.5 or higher, but i keep getting this message:
      The API level set for the APK is less than the minimum required by the kit.
      The minimum API level required by the kit is 16.
      Error while building/deploying project untitled2 (kit: Android for x86 (GCC 4.9, Qt 5.11.1 for Android x86))
      When executing step "Build Android APK"

      despite having set the android manifest to minimum required sdk to api 10, target sdk 10 and inside build settings, android sdk build: 10.

      when i compile for lets say api 26 it works. 3 days now not trying to make this thing run.... this used to be easier to configure back in 2015....

      I'm using Qt 5.11.1 Win 10 32 bit, SDK 26, NDK r17b / r10e

      Resistance Is Futile. Your biological and technological distinctiveness will be added to our own.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        As the error message says: the minimal required API version is 16.

        If you need lower version, then you have to use an older version of Qt.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        O 1 Reply Last reply Reply Quote 1
        • O
          onimusha @SGaist last edited by

          @SGaist Older version of Qt? pls explain. So i'm fine using the latest SKD and NDK from android even if i use Qt 4.8 right?

          Resistance Is Futile. Your biological and technological distinctiveness will be added to our own.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            No, stay with Qt 5. Qt 4 has reached end of life a long time ago.

            It's explained here. Basically, if you are targeting such old versions of Android, you'll likely have to use Qt 5.6.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • First post
              Last post