& quot; adb安装& quot;返回错误:协议错误(无状态) [英] "adb install" returns error: protocol fault (no status)

查看:139
本文介绍了& quot; adb安装& quot;返回错误:协议错误(无状态)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建并运行了几个android模拟器,现在我想在其上安装应用程序.这是我尝试几次的故事:

I have created and ran a couple of android emulators, now I'd like to install application on them. Here is the story of me trying it a couple of times:

$ 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

您能帮我解决该问题吗?谢谢

can you please help me what else I can do to check the problem? thank you

推荐答案

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

解决方案是

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

Goto \platform-tools using Terminal and execute below commands

set ADB_TRACE=1
adb start-server


要从ADB设备列表中删除仿真器,

打开"Android虚拟设备管理器"->选择您要使用的仿真器要删除->单击删除"按钮.

Open "Android Virtual Device Manager" -> Select the Emulator which you want to delete -> click on Delete button.

请参见下图

这篇关于&amp; quot; adb安装&amp; quot;返回错误:协议错误(无状态)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆