"Android SDK installation is missing necessary packages" - but it is not!
-
I have not yet managed to compile/deploy for Android on my laptop.
I have deleted my old SDK, NDK and uninstalled JAVA. Then, via Preferences/Devices installed it all, according to Qt's recommendations:C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot
C:\android-ndk-r25c
cmdline-tools;9.0Then I was prompted, that Android SDK installation is missing necessary packages. Do you want to install the missing packages? | 7 Android SDK packages shall be updated. Of course, I did that and accepted every license question.
Show Details reveals:- [Packages to be installed:]
- NDK (Side by side) 21.3.6528147
- Android SDK Platform 31
- NDK (Side by side) 25.1.8937393
- Android SDK Build-Tools 31
- Android SDK Command-line Tools (latest)
- Android SDK Platform-Tools
- Google USB Driver installation
After installation, I can see those packages (for example C:\AndroidSDK\SDK\extras\google\usb_driver) have indeed been installed:
Unfortunately, Qt Creator doesn't seem to see the packages. It gives me the very same dialog again and shows a red cross instead of a check mark at
- Android Platform SDK (version) installed
- All essential packages installed for all installed Qt versions.
If I accept the dialog again, Qt starts installing again, but notices the existing packages and installs into folders with a -2 suffix (for example: C:\AndroidSDK\SDK\extras\google\usb_driver-2). This behaviour is an endless loop (-3, -4...), until I hit cancel instead of ok in the dialog.
I have repeatedly deleted the SDK and repeated the process to no avail and must now give up - any idea?Qt Creator 10.0.2, Windows 10
-
@JoeCFD Thank you for your answer, but that was exactly what I had done - tried and tried all over again. The solution came now with vigorously erasing all of AndroidSDK, upgrading Creator. Now it works!! I'll probably never know why it didn't before. :-)
-