'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator
-
Hi all!
I am trying to get my Qt environment set up for android dev. I've included the sdk and ndk paths. Everything in the checklist (pictured below) is looking good except for the 'Platform SDK installed' which has a red x next to it. Does anyone know what might be causing this?
Additionally, whenever I include the path for the location of the Android SDK, Qt prompts me with the following:
But when I click 'yes' nothing happens. I assume these two issues go hand in hand. I don't want to start developing only to realize that something is all messed up because I didn't link up my android environment with my qt environment properly from the get go.Thanks all!
-
Hi,
What version of Qt are you using ?
On what version of macOS ?Did you install the SDK/NDK prior to Qt Creator ?
-
@abanksdev which version of QtCreator are you using ?
I'm using 4.5.1 and this versions makes it very easy to manage Android SDK and Tools -
I actually run into this a couple of days ago,
the problem for me was, I had prio to everything RAD Studio installed, that came with its own SDK and NDK packages.
Later I installed the newes SDK and NDK manually in a specific folder and hat the same issue setting up android kits in QtCreator
The solution was to link against the previous installation of sdk, the one from RAD Studio, et voliĆ , every thing works as intended.
So, you should check for prior installations of android sdk, for example through Android studio.
-
@ekkescorner I use Qt Creator 4.6.0
-
@abanksdev
No, it's totoaly fine to have Android Studio on your pc as well. What I mean is.If you have installed Android Studio, that installs automatically Android SDK, if you than go and download the standalone Android SDK packet and install that as well.
This was the situation I had. and "linking" aka passing the path to the original SDK installation in QtCreator
solved the issue for me. -
@abanksdev no, I understand @J-Hilk says the other way around:
passing the path to the original SDK installation in QtCreator
setting Qt to use the Android SDK installed automatically by Android Studio (see the paths highlighted in previous post)
-
@abanksdev Ok, re-reading your post I now think what you're missing is SDK tools for a particular API level. See here the example about installing the SDK tools for API level 26:
sdkmanager "platforms;android-26"
-
@Pablo-J-Rogina I have Android SDK Platform-Tools version 27.1.10, are you saying I should downgrade to 26?
-
@abanksdev No. What I said is that you need to check (and eventually install) the platform SDK you have installed, a component which is different from the platform tools.
Could you please do:$ANDROID_HOME/tools/bin/sdkmanager --list
and look at the top entries under "Installed packages: "
-
Hi all, it turns out that my JDK was incompatible with my Qt Version...I fixed the issue by deinstalling JDK 10 and installing JDK 8
I am using the following Qt versions:With Qt Creator version 4.6.0
And the sdk and ndk I am linking to are packaged within Android Studio (although I did have to download and install the ndk separately.)
-
@abanksdev great! so if your issue is solved, please don't forget to mark your post as such. Thanks.
-
Check out this site http://wiki.qt.io/Qt_for_Android_known_issues