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. Why Qt Creator 4.12.1 installs an old NDK 21.1.6352462?
Forum Update on Monday, May 27th 2025

Why Qt Creator 4.12.1 installs an old NDK 21.1.6352462?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    I have NDK 21.2.6472646 in C:\Users\D-Ef\AppData\Local\Android\Sdk\ndk-bundle folder, but when I run Qt Creator 4.12.1 first time and opened Tools->Options->Devices->Android Tab it reported some conifuration error and installed an older NDK 21.1.6352462 to C:\Users\D-Ef\AppData\Local\Android\Sdk\ndk\21.1.6352462 folder. Now there are two NDK installed, see the screenshot.

    Why doesn't it work with my existing NDK?

    K 1 Reply Last reply
    0
    • D Dmitriano

      I have NDK 21.2.6472646 in C:\Users\D-Ef\AppData\Local\Android\Sdk\ndk-bundle folder, but when I run Qt Creator 4.12.1 first time and opened Tools->Options->Devices->Android Tab it reported some conifuration error and installed an older NDK 21.1.6352462 to C:\Users\D-Ef\AppData\Local\Android\Sdk\ndk\21.1.6352462 folder. Now there are two NDK installed, see the screenshot.

      Why doesn't it work with my existing NDK?

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

      @Dmitriano

      You need to select the ndk as required under "Tools"->"Options"->"Devices".
      In case you check with different Qt versions you might have to change selection there.

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

      D 1 Reply Last reply
      2
      • K koahnig

        @Dmitriano

        You need to select the ndk as required under "Tools"->"Options"->"Devices".
        In case you check with different Qt versions you might have to change selection there.

        D Offline
        D Offline
        Dmitriano
        wrote on last edited by
        #3

        @koahnig
        Yes, I can select NDK in "Tools"->"Options"->"Devices", but when I have only NDK 21.2.6472646 installed, Qt Creator 4.12.1 requires older NDK 21.1.6352462 to be installed, see the screenshot. And it is not clear why doesn't it work with my existing NDK?

        K 1 Reply Last reply
        0
        • D Dmitriano

          @koahnig
          Yes, I can select NDK in "Tools"->"Options"->"Devices", but when I have only NDK 21.2.6472646 installed, Qt Creator 4.12.1 requires older NDK 21.1.6352462 to be installed, see the screenshot. And it is not clear why doesn't it work with my existing NDK?

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

          @Dmitriano

          Most likely it is due the Qt lib version requiring an older NDK. Qt creator is just telling you that the version is not compatible.

          You have to be careful that you choose the correct NDK because of tool chain and associated compiler dependent libs.

          Qt 5.12. required for instance
          d6e00bf0-afaf-4dab-8df5-edd14b9b05cd-image.png

          Qt 5.14. and higher require NDK
          45616aa7-6366-4575-9859-b6362f6aece5-image.png

          Most likely there has been another change on the Android side making both NDK incompatible. Just a guess.

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

          1 Reply Last reply
          0
          • adaitabeheraA Offline
            adaitabeheraA Offline
            adaitabehera
            wrote on last edited by
            #5

            There is a bug reported for this issue and you can find the workaround in the first comment: https://bugreports.qt.io/browse/QTCREATORBUG-24248

            C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg. -- Bjarne Stroustrup

            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