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 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.