I'm having a curious situation with the adb shell
command.
adb devices
shows my device connected as expected; however when I try
adb shell
with no arguments, it responds error: no device found
. HOWEVER, when I run
adb -s <device_serial_number_from_adb_devices> shell
I'm able to get into the shell successfully. Which is fine, except that I'm having some other adb-related problems due to it not connecting with default params.
Additional info:
android adb update
Can any adb experts shed some light? Thanks!
I don't know if you are still looking for an answer to this but I had the exact same problem recently. This is a result of setting the ANDROID_SERIAL variable in system variables. I had done so when trying to set up CI builds (Cukes and Units) to run on a physical device and emulator separately (ADB wasn't playing nice when both builds were being run on the same phy
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.