Unsolved 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 toC:\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?
-
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? -
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
Qt 5.14. and higher require NDK
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