QT Creator - Select Android Device - device connected over TCPIP is missing
-
I am trying to debug QT application for android over WiFI network in QT Creator.
Building, deploying & debugging over USB works fine.
I followed the instructions for connecting adb via WiFi network:$ adb devices
adb server is out of date. killing...
daemon started successfully
List of devices attached
9WVDU18620005677 device
$ adb tcpip 6555
restarting in TCP mode port: 6555
$ adb connect 192.168.43.1:6555
connected to 192.168.43.1:6555
$ adb devices
List of devices attached
9WVDU18620005677 device
192.168.43.1:6555 deviceThen I disconnected USB cable and adb was connected only over IP:
$ adb devices
List of devices attached
192.168.43.1:6555 deviceHowever when I try to start debugging in QT Creator and the Select Android Device dialog pops out there are no available devices in the list.
Is is possible to debug over TCPIP in QT Creator? Any clues on how to do it?Thanx!
-
I am trying to debug QT application for android over WiFI network in QT Creator.
Building, deploying & debugging over USB works fine.
I followed the instructions for connecting adb via WiFi network:$ adb devices
adb server is out of date. killing...
daemon started successfully
List of devices attached
9WVDU18620005677 device
$ adb tcpip 6555
restarting in TCP mode port: 6555
$ adb connect 192.168.43.1:6555
connected to 192.168.43.1:6555
$ adb devices
List of devices attached
9WVDU18620005677 device
192.168.43.1:6555 deviceThen I disconnected USB cable and adb was connected only over IP:
$ adb devices
List of devices attached
192.168.43.1:6555 deviceHowever when I try to start debugging in QT Creator and the Select Android Device dialog pops out there are no available devices in the list.
Is is possible to debug over TCPIP in QT Creator? Any clues on how to do it?Thanx!
@Zeronio
basically it doesn't make any difference for QtCreator how the device is connected in the end, since everything is abstracted by adb.
What QtCreator version are you using? -
To me it looks like the "Select Android Device" dialog restarts adb server before refreshing device list which removes the TCPIP device out of it.
When I call adb from command line after that it says adb server is out of date. killing... and then I have to connect the device manually again.
I am using Qt Creator 4.7.0
Based on Qt 5.11.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
Built on Jul 17 2018 04:23:40 -
I’m running into the same issue.
I created a bug report for it, feel free to follow or vote on it:
https://bugreports.qt.io/browse/QTCREATORBUG-22765