【发布时间】:2013-09-05 05:41:28
【问题描述】:
我已经创建并运行了几个 android 模拟器,现在我想在它们上安装应用程序。这是我尝试了几次的故事:
$ adb -s emulator-5562 install xxx.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: protocol fault (no status)
- waiting for device -
^C
$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
emulator-5554 device
emulator-5556 device
emulator-5558 device
emulator-5560 device
emulator-5562 device
$ adb -s emulator-5562 install xxx.apk
error: protocol fault (no status)
- waiting for device -
^C
$ killall adb
$ killall adb
adb: no process found
$ adb -s emulator-5562 install xxx.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
3748 KB/s (766384 bytes in 0.199s)
pkg: /data/local/tmp/xxx.apk <- sometime it reaches upto here but it stays there for ever
^C
您能帮我检查一下问题吗? 谢谢
【问题讨论】:
-
嘿试试
\platform-tools>set ADB_TRACE=1然后` \platform-tools>adb start-server` commnads -
@PankajKumar by
\platform-tools>set ADB_TRACE=1你的意思是set是另一个特殊的sdk 命令吗?我猜不会。无论如何,不,它没有帮助 -
你能得到每个模拟器的
adb shell吗? -
@PankajKumar 您的评论确实有效。我指定了一个死模拟器的端口(但我不知道如何从
adb devices列表中删除模拟器,我没有关闭它)感谢您的回答。如果您从您的评论中做出回答,我将不胜感激 + 多解释一下错误的原因是什么以及该设置如何帮助。谢谢 -
@rahman 为您的两个问题添加了答案..