"adb install"返回错误:协议错误(无状态)

rah*_*man 3 android adb android-virtual-device

我已经创建并运行了几个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
Run Code Online (Sandbox Code Playgroud)

你能帮我解决一下我能做些什么来检查问题吗?谢谢

Pan*_*mar 6

"adb install"返回错误:协议错误(无状态):

解决方案是

转到\platform-tools使用终端并执行以下命令

set ADB_TRACE=1
adb start-server
Run Code Online (Sandbox Code Playgroud)

要从ADB设备列表中删除模拟器:

打开"Android Virtual Device Manager" - >选择要删除的模拟器 - >单击"删除"按钮.

见下图 在此输入图像描述