Issue with the Android Kit when installing Qt6.9.0 on Windows 11 Home
-
Hi,
I installed Qt6.9.0 for Android on my windows 11 home.
While the installation goes fine and successful, I am facing issue when selecting Android Kit. The kits are not recognized as valid, as shown below.
The SDK seems to be set correctly when using jdk-24, as shown below.
When I select jdk-11, I got the below error:
What may be the issue with my Android Kit ?
How can I fix it to start compiling Android apps ? -
Hi,
I installed Qt6.9.0 for Android on my windows 11 home.
While the installation goes fine and successful, I am facing issue when selecting Android Kit. The kits are not recognized as valid, as shown below.
The SDK seems to be set correctly when using jdk-24, as shown below.
When I select jdk-11, I got the below error:
What may be the issue with my Android Kit ?
How can I fix it to start compiling Android apps ?@ZINE said in Issue with the Android Kit when installing Qt6.9.0 on Windows 11 Home:
got the below error
Which you should translate to English.
-
@jsulm
Here is the error that I got when selecting jdk-11:
Error message: Qt Creator cannot find the following essential packages: "platform-tools", "cmdline-tools;latest", "emulator", "extras;googlemsb_driver", "ndlc26.1.10909125", "platforms;android-35", "build-tools;35.0.0". Install them manually after the current operation is finished.But even if this error is not shown when using jdk-24, the android Kit cannot be used.
-
@jsulm
Here is the error that I got when selecting jdk-11:
Error message: Qt Creator cannot find the following essential packages: "platform-tools", "cmdline-tools;latest", "emulator", "extras;googlemsb_driver", "ndlc26.1.10909125", "platforms;android-35", "build-tools;35.0.0". Install them manually after the current operation is finished.But even if this error is not shown when using jdk-24, the android Kit cannot be used.
@ZINE According to this page you need JDK17: https://doc.qt.io/qt-6/android.html
Did you check the Android Kits to see whether there are any warnings/errors? -
@jsulm yes, setting JDK 17 is required. Also, setting CMAKE manually for each Kit is also required.
I successfully compiled a Mobile example using Android Qt 6.9.0 Clang arm64-v8a. However, I could not deployed to an Android 13 device. The device is detected by adb and Qt. However, I got the below error when releasing:Any advice on this ?
-
I solved this deployment issue after following solution from this post:
https://forum.qt.io/topic/140996/qt-6-4-1-android-installing-the-app-failed-with-an-unknown-error -