Solved Android: QtCreator not detecting toolchains
-
-
I think I have specified the JDK, SDK, NDK.
I have downgraded the Java to version 8 as recommended. This helped to get the Android settings to say "Android settings are OK".
I have downgraded the NDK to 10e in a separate install location. This did not help anything. Also I read that 10e will not support newer Android APIs, so I went back to what Android Studio downloaded (... \Local\Android\Sdk\ndk-bundle) as you see here.So this window says everything is ok, but elsewhere Qt Creator does not create any Android kits, there are no Android compilers recognized, and no Android debuggers.
Steve
-
The versions recommended for installation are to be found in here
Therefore your NDK version is too new requires down-grade at lkeast tobe conform with the recommendations.There is another thread where someone is referring to NDK might more recent than recommended.
-
@skaiser
as @koahnig said, NDK 18 isn*t supported yet.
It contains clang compilers, which are not yet recognized (even not with QtCreator 4.8 beta)Simply download an older NDK version (like v15) from here and point the path in QtCreator to it.
Also see QTCREATORBUG-11846 (marked with P1 priority, so it will be fixed before/along the Qt 5.12 release)
-
@koahnig linked to another thread where I told I had success with NDK 17 with Qt 5.11.2 (and 5.12beta).
It's also possible that you have to close and reopen the Qt Creator after making changes. Some things it detects on the fly, some things not. If you install NDK 17 and point the "Android NDK location", then reopen the Creator, is it so that it still doesn't find "Android GCC" in Kits/Compilers tab?
BTW, I also spent couple of days with this. It's no big fun to try to clean up a 10 year old machine from everything Android related and download and reinstall Android studio again couple of times, just to see how it doesn't work and then find out you have to change the JDK version and then the NDK version, only after googling for hours of course, and then find out that what works at home doesn't work at workplace... But I feel a little bit more self-confident after that process :)
-
@raven-worx
Success! Thanks for the link to all the NDK versions. I think having to use NDK 10 got me so upset (since it is ancient) that perhaps I tossed it off my hard drive before I had everything else in place.I used: Qt 5.11.2 for Android, the SDK from Android Studio 3.2.1, NDK 17 in a separate install (leaving Android Studio's default NDK 18 intact), and Java JDK 8.
Qt Creator effortlessly auto-created the Android Kit I waited so long to see appear. Yeay! I compiled and downloaded an empty Qt Quick app onto my Galaxy Tab A7 directly, and then the Analog Clock example. Works great!
Many thanks to all the people who chimed in. Wow you guys helped a lot. Now the real Qt coding fun begins!
Steve -
And now the big question... who earned $200?
-
😳 Can I bake you some cookies?
-
@skaiser Sure. We all love cookies :)
-
If they are not e-cookies. Those I have to accept every day because of EU...