Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Why Qt Creator 4.12.1 installs an old NDK 21.1.6352462?



  • 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?



  • @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.



  • @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?



  • @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.



  • 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


Log in to reply