'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator
-
wrote on 30 Apr 2018, 20:55 last edited by
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 ?
-
wrote on 1 May 2018, 14:47 last edited by
-
Im using Qt 5.10
on High Sierra version 10.13.4I had installed the SDK prior to installing Qt Creator, I installed the NDK after installing 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.
-
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.
-
wrote on 2 May 2018, 18:27 last edited by
@ekkescorner I use Qt Creator 4.6.0
-
wrote on 2 May 2018, 18:57 last edited by
@J-Hilk what do you mean by 'link against?'
-
@J.Hilk That might be it, I'll try it. Does that mean that I can't have Android Studio installed and Qt linked up for Android dev? I use both programs
@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. -
wrote on 3 May 2018, 16:43 last edited by
@J-Hilk okay so basically what you're saying is that I should also install the standalone Android SDK and link to that rather than the SDK that comes with Android Studio?
Thanks!
-
@J-Hilk okay so basically what you're saying is that I should also install the standalone Android SDK and link to that rather than the SDK that comes with Android Studio?
Thanks!
wrote on 3 May 2018, 16:49 last edited by@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)
-
wrote on 3 May 2018, 18:40 last edited by
@J-Hilk @Pablo-J-Rogina I've already done that, I'm currently linking to the SDK installed automatically by Android Studio and that's what's causing issues. I don't have any other SDK installed at this time.
-
@J-Hilk @Pablo-J-Rogina I've already done that, I'm currently linking to the SDK installed automatically by Android Studio and that's what's causing issues. I don't have any other SDK installed at this time.
wrote on 3 May 2018, 18:44 last edited by@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"
-
wrote on 4 May 2018, 15:16 last edited by
@Pablo-J-Rogina I have Android SDK Platform-Tools version 27.1.10, are you saying I should downgrade to 26?
-
wrote on 4 May 2018, 15:41 last edited by
@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: "
-
wrote on 6 May 2018, 01:07 last edited by
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.)
-
wrote on 7 May 2018, 19:16 last edited by
@abanksdev great! so if your issue is solved, please don't forget to mark your post as such. Thanks.
-
wrote on 5 Oct 2018, 17:12 last edited by
Check out this site http://wiki.qt.io/Qt_for_Android_known_issues
-
wrote on 19 Dec 2018, 23:12 last edited by
-
I put in "--verbose" under Tools>Options>Devices>SDK Manager>Advanced Options and the red cross on platform SDK went away.
wrote on 20 Dec 2018, 12:33 last edited by@owflayar what if you try Androdi sdk-manager from command line? See my previous responses