我已经创建并运行了几个安卓模拟器,现在我想在它们上面安装应用程序。这是我尝试过几次的故事:
$ 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
你能帮我做些什么来检查这个问题吗? 谢谢
最佳答案
“adb install”返回错误:协议(protocol)错误(无状态):
解决方案是
使用终端转到 \platform-tools
并执行以下命令
set ADB_TRACE=1
adb start-server
从 ADB 设备列表中删除模拟器:
Open "Android Virtual Device Manager" -> Select the Emulator which you want to delete -> click on Delete button.
见下图
关于android - "adb install"返回错误 : protocol fault (no status),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18628584/