When I have more than one Android device connected to my host machine and I attempt to debug, VisualGDB looks like it understands and prompts me to select the device I want to use, but right after asks it errors out with a “Cannot query process list from the Android device”. Here’s the ADB log:
C:NVPACKandroid-sdk-windowsplatform-toolsadb.exe devices
List of devices attached
b19834d4 device
D02505042143008V device
C4F12771EEDBCAE device
0A3BBFB20B00E007 device
0AD6000600000001 device
Command exited with code 0
C:NVPACKandroid-sdk-windowsplatform-toolsadb.exe shell ps
error: more than one device and emulator
Command exited with code -1
Shouldn’t it be passing the serial number to adb.exe using the “-s serial_num” command line option? I have both ADB_SERIAL and ANDROID_SERIAL environment variables set to the device I’d like to use. Unplugging all but one device works. I’m using NDK r8e and SDK platform tools 21.1. Thanks!!