3

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

4

3 回答 3

6

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

解决方案是

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

set ADB_TRACE=1
adb start-server

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

打开“Android虚拟设备管理器”->选择要删除的模拟器->点击删除按钮。

见下图 在此处输入图像描述

于 2013-09-05T06:30:57.677 回答
2

对我来说,它原来是一个过时的 ADB 服务(过时的平台工具)。
它仍然可能是一个过时的驱动程序,但由于驱动程序大部分时间都没有更新,请确保您已通过 SDK 管理器安装了最新版本的 Android SDK 平台工具: Android SDK 管理器

我还读到,当您安装 Android Studio 时,可能会出现问题。然后您必须通过“工具 -> Android”禁用 ADB 集成(取消选中)。之后,使用adb kill-server或简单地重新启动计算机来重新启动您的 adb 服务器。 安卓工作室

于 2014-12-16T18:02:02.007 回答
0

我遇到了它,因为连接了多个 ADB 设备。

断开除我正在使用的设备之外的所有设备对我有用。

于 2015-04-29T21:11:36.753 回答