Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
QDS 4.3.1
-
None
Description
Follow this tutorial:
https://doc.qt.io/qtdesignstudio/creator-live-preview-android.html
Actually, I skip installing and setting up JDK/Android SDk/Android Studio, etc. since they had already been done for Qt Creator. Qt Design Studio automatically picks everything, and everything looks correct. Everything looks the same as my Qt Creator settings and no error.
Also fix missing "kits" issue by modifying QtDesignStudio.ini (described here https://bugreports.qt.io/browse/QDS-11063) so that I can make sure it is my Android emulator being set to kit as "run device", as described here:
https://doc.qt.io/qtdesignstudio/creator-live-preview-android.html#set-the-avd-as-the-device-in-the-android-kit
So I load our Cluster Tutorial, and it actually works perfectly with desktop kit. But with Android kit, nothing happens when I click "Live Preview". Nothing pops up, no error. Simply nothing.
Two things I notice:
1. "Device type is not supported by Qt version" warning for my auto-detected Android device kit (it's not there for desktop kit). But I cannot do anything to Qt version since I am forced to use "Designer specialized Qt 6.5.2". The "Qt version" is greyed out and I cannot change it.
2. In Build & Run -> Android device -> Run -> Run, there is a warning telling me "No QML utility specified for target device". Comparing to the screenshot in tutorial, I see that my "Main QML file" is empty. But still, I can do nothing to it since it is greyed out and not changeable.
2 screenshots are attached for the 2 issues that I suspect to be the reason.