现在的位置: 首页 > 综合 > 正文

error: more than one device and emulator—–adb命令

2013年10月24日 ⁄ 综合 ⁄ 共 309字 ⁄ 字号 评论关闭

error: more than one device and emulator-----adb命令

通过adb命令往Android模拟器或者真机里面安装程序时,如果有两个以上的设备时会报错:error: more than one device and emulator。

解决这个问题需要用到一个参数“——s”,例如,安装某个程序时需要:adb -s devicename install apk的路径。

如,要将com.test.apk安装到emulator-5554上面,就可以这样写了:adb -s emulator-5554 install "C:\Documents and Settings\Administrator\桌面\com.test.apk"

抱歉!评论已关闭.