QtCreator complains that "Android SDK is missing necessary packages," does nothing.
Everything else under Devices/Android is checked off as being OK. The one red X is "Platform SDK installed." But the platform SDK is installed. I installed Android Studio and the NDK.
Every time I visit this page, I get a dialog saying ,"Android SDK installation is missing necessary packages. Do you want to install the missing packages?"
And then I choose Yes. And nothing happens.
Anybody know how to resolve this?
What OS are you on?
Best is to post a screen shot.
Also look out for special signs when you receive such messages. Qt creator typically tells where the issue is. Hovering with mouse above the signs give also some hints on how to resolve.
Hi. Thanks for your answer. I'm on Mac OS (latest, Mojave).
I don't see anything to hover over that provides any more info. Here's a screen shot:
I do not know about Mac, but on windows it looks like this
There is the cmake folder in addition. I gugess that is not required. On windows I have a couple of different folders under build-tools. These folders seem to indicate the SDK version numbers.
IIRC I had to install an SDK when starting the Android suite the first time. Some of those versions I had added lateron.
from the screenshot I would say the sdk folder is indeed missing, it should look like this
My SDK installation comes from the link QtCreator provides, when you click on the button right of the choose button, the one with the green arrow.
Thanks for the replies, guys.
Android Studio shows that the SDK is installed:
In case you still have issues, it could be better to install an older SDK version. You want to check if there is already a bug report on JIRA.. Possibly your Qt creator version is not yet compatible with the latest Android SDK. So far in the past it was always better to stay with older SDK versions, see also http://doc.qt.io/qt-5/android-getting-started.html
@koahnig Thanks for the info. I will try that.
Well, I installed the previous Android SDK version as well, and Qt still claims that it's not installed. This despite still showing that all the other Android stuff is installed.
@koahnig Well, now I've installed the Android SDKs back to API version 25, and still no dice. I just updated to Qt 5.12.1, too.
This is pretty much a show-stopper...
I'd file a bug report, but my log-in ID is somehow messed up and there's no way to contact an admin for the bug tracker (kind of a big problem in its own right).
SDK version 25 seems to be too early for Qt5.12.1, but that is more a gut feeling.
I am currently using with Qt5.11.3 on windows 10 64 bit.
and that is the version combination I got to compile and run with Qt 5.12.1
Resepctively to be very precise it is the tool chain indicated as Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv73) in creator.
Thanks for the reply.
I have every version of Android SDK from 25 UP.
I've seen several developers posts having trouble with the SDK coming from Android Studio.
AFAIR, the solution was to use the "Command line tools only" download option.
Actually... I think the SDK (or JRE) that's buried in the Android Studio installation may be the only one that still works. Maybe they're shipping their own version of the now-deleted components.
I don't even remember how I discovered this workaround... but if you go into Devices/Android in Qt Creator preferences and direct the JDK location to the one that's installed by Android Studio... it seems to work.
On the Mac, that location is:
So anyone who's experiencing this, give that a try and let us know how it goes.
Thanks for the feedback !
@SGaist No problem. I should have posted this before but got sidetracked.
Here's a screen shot of how things look on my system now. The other paths (starting with /Developer) are where I told Android Studio to install all of its supporting files (or its installer defaulted to; I don't remember).
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)