轉(zhuǎn)載自 杭州山不高的原創(chuàng)
當我連著手機充電的時候际插,啟動模擬器調(diào)試凛辣,執(zhí)行ADB指令時薄扁,報錯率寡。
C:\Users\gaojs>adb shell
error: more than one device and emulator
C:\Users\gaojs>adb install e:\good.apk
error: more than one device and emulator
碰到這種情況,首先要查一下倚搬,是不是真的有多個設備或模擬器冶共。
C:\Users\gaojs>adb devices
List of devices attached
emulator-5554?? device
4dfadcb86b00cf05??????? device
發(fā)現(xiàn)還真是多個設備,那就需要為ADB命令指定設備的序列號了。
C:\Users\gaojs>adb?-s emulator-5554?shell
也就是如上所示捅僵,給命令加上-s的參數(shù)就可以了家卖!