I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using \'Qt Creator version 4.5.0\'
I just found this bugreport, where in the comments can be found
The native 'sdkmanager' tool can not update packages on windows and it fails with JDK 9 and these issues cascades to Qt Creator also.
I just tried installing JDK 8 and changing the path, and after reopening the settings menu it had worked!
you do not need to wipe the configs for qt. simply install the latest of jdk 8 from here -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
next select the jdk location in the options and then toward the bottom select the sdk manager tab. Click the update installed button and it should show a window with a list of licenses you need to agree to.
The problem lies with jdk 9 and up. For some odd reason it doesn't show the license agreements and doesn't continue beyond that point. The fix is sticking with jdk8
After lot of effort I am able to fix this issue, thanks to Mohammad Kanan, Vesafary who's answer made me get closer to Answer, Actual issue resolved with the following steps. It may be helpful who are facing the same issue In Ubuntu or may work on other platforms as well.
and did Instalation again. May be your problem get resolved at this step.
Step 2 also didn't help in my case, QT Creator still persist few settings and need to reset Qt creator settings. That can be done by deleting data in this folder
~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf
path may be different in different System and OS. following links will be helpful in this case.
Creator FAQ
Stack Overflow Qt Settings 1
Stack Overflow Qt Settings 2
Now i am able to build and run android application.
I am using the answer box to show you how it works for me, one last comment: I don't install NDK 16 .. try remove it from Android manager; while (For Qt) install seperately NDK 10e (this was a Qt recommendation already).
And Qt configuration side:
I just had the exact same symptoms as the OP. Just that unlike the OP, I was using Qt Creator 4.8.0, as provided in the Ubuntu 19.10 repositories.
The relevant part from the Qt Creator self-check list is:
✓ SDK tools installed.
X Platform SDK installed.
An additional symptom was that the "SDK Manager" tab below had this message:
SDK manager is not available with the current version of SDK tools. Use Native SDK Manager.
The reason for this issue was a wrong version of SDK tools. That wrong version is recognized ("SDK tools installed.") but cannot be utilized by Qt Creator to detect which platform SDK is installed or to install new ones.
In my case, I had simply downloaded the latest version, provided as commandlinetools-linux-*_latest.zip
on the Android Studio download page. That version introduced changes that are not backwards compatible with the interface of earlier versions that Qt Creator is expecting. That new package is indeed quite different: it has a different name (commandlinetools
vs. sdk-tools
), expects to be in a different place etc..
To solve this, download and install "Android SDK Tools 26.1.1" (rev. 4333796) as follows, supplying your own Android SDK directory of course:
cd /opt/android-sdk/
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip
That fixed all the symptoms described above.
Thanks I had the same problem, using Debian Buster (sid) with QtCreator 4.6.2 with Qt5.10.1
Go into ~/.config and wipe all the qtcreator settings, then start again specifying jdk.8 then the paths to the Android SDK and then the NDK.
It then works and the dumb SDK platform not installed error does not occur. :)
Out of interest I tried wiping everything ~/.config/qtcreator* and then specifying jdk10. Does not work as before.
If you then change to jdk8, it still does not work. You have to close QtCreator, wipe all the configs, reopen and choose it again, whereon it will work.