Qt6.8.2 Android:No Device set.
-
wrote on 17 Feb 2025, 14:22 last edited by
-
I have configured SDK, NDK and SSL according to the documents and videos on the official website, and the configuration displayed in Qt is correct.Below is the screenshot:
But I have the following problem:
What should I do?@Xuehs Go to your Android Kit configuration and select Android device there as device
-
wrote on 18 Feb 2025, 12:04 last edited by
-
Can you be a little more specific?
There doesn't seem to be an Android Device to choose from.@Xuehs Yes, either use Android emulator or a phone to run your app.
-
If you're using an actual phone, make sure usb debugging is enabled in the developer settings and that file transfer via USB is also enabled.
2 typical pitfalls.
Also make sure your device is officially supported by AndroidStudio, some OEM's have proprietary tool chains & sdk's and you won't be able to make those work (easily, I never was able)
-
If you're using an actual phone, make sure usb debugging is enabled in the developer settings and that file transfer via USB is also enabled.
2 typical pitfalls.
Also make sure your device is officially supported by AndroidStudio, some OEM's have proprietary tool chains & sdk's and you won't be able to make those work (easily, I never was able)
wrote on 18 Feb 2025, 12:27 last edited by@J-Hilk Are you saying that if I'm using a real phone, I need to put the phone in developer mode and turn on USB debug?Thank you very much for reminding me, but my real USB connected phone is not found in Qt now.It's too early to tell, I can't compile my project right now because I haven't deployed the Android environment yet.
-
@J-Hilk Are you saying that if I'm using a real phone, I need to put the phone in developer mode and turn on USB debug?Thank you very much for reminding me, but my real USB connected phone is not found in Qt now.It's too early to tell, I can't compile my project right now because I haven't deployed the Android environment yet.
@Xuehs usb-debugging needs to be enabled and MIDI should be selected for file transfer mode. on my pixel this always defaults back to no file transfer via usb, no idea why, once the cable is removed.
-
@jsulm
I have now added an Android device, as shown below:
Then I created a new Android project(blank project), directly compiled, the error is as follows:
What should i do?@Xuehs Is your machine connected to the internet?
-
9/10