Following instructions still shows missing missing packages
-
Hi,
I am using Qt 6
I am trying to configure Android SDK on Qt Creator, but I keep getting missing package error. As (screenshot)
I have followed the instructions shown here -> https://doc.qt.io/qt-6/android-getting-started.html#installing-the-android-sdk-essentials
That means I have installed - Android 12 API version 31, Android SDK build tools 31, NDK 22.1.7171670, latest version of command line tools and USB driver. And I still get that error.
Any help would be appreciated.
-
I think I figured it out. Looks like Qt creator has a specific version it is compatible with. This can be found at
<Qt install location>\Tools\QtCreator\share\qtcreator\android\sdk_definitions.json
.As for version Qt 6.2.2 and Qt creator 6.0.1, the JSON file contains:
{ "common": { "sdk_tools_url": { "linux": "https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip", "linux_sha256": "89f308315e041c93a37a79e0627c47f21d5c5edbe5e80ea8dc0aac8a649e0e92", "windows": "https://dl.google.com/android/repository/commandlinetools-win-6609375_latest.zip", "windows_sha256": "40bba20275180194bebf89bb58c74d712bb93cc401f36bd2f8f32383acf9826c", "mac": "https://dl.google.com/android/repository/commandlinetools-mac-6609375_latest.zip", "mac_sha256": "2c3822db1c916655223e5ee8ce0fbf6b73d0b99012045c9dc8eaa6a5736c0c55" }, "sdk_essential_packages": { "default": ["platform-tools", "platforms;android-30", "cmdline-tools;latest"], "linux": [], "mac": [], "windows": ["extras;google;usb_driver"] } }, "specific_qt_versions": [ { "versions": ["default"], "sdk_essential_packages": ["build-tools;30.0.2", "ndk;21.3.6528147"], "ndk_path": "ndk/21.3.6528147" }, { "versions": ["5.12.[0-5]", "5.13.[0-1]"], "sdk_essential_packages": ["build-tools;28.0.2", "ndk;19.2.5345600"], "ndk_path": "ndk/19.2.5345600" } ] }
That means , it supports:
- NDK 21.3.6528147
- Latest command line tools
- Android API 30
- Google USB driver
- Build tools 30.0.2