android - "adb install"返回错误 : protocol fault (no status)

标签 android adb avd

我已经创建并运行了几个安卓模拟器,现在我想在它们上面安装应用程序。这是我尝试过几次的故事:

$ 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.

见下图 enter image description here

关于android - "adb install"返回错误 : protocol fault (no status),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18628584/

相关文章:

android - Android 安装 psycopg2 termux 错误

android - 如何通过adb测试wifi连接?

android - 为 Android 离线(手动)安装 Intel x86 Atom 系统镜像

Android Studio 上的 Android 虚拟设备错误

android - 层列表 windowBackground 的布局边界是否与膨胀布局不同?

Android:PreferenceManager 与 Context.getSharedPreferences() 以及为什么后者让我失败

java - 每个日期单元格样式都可配置的 Android 自定义日历 View ?

android - ADB 没有在 Ubuntu 上检测到我的安卓设备

android - 如何测试仅在更新后出现的 "Application is not installed"问题

android - android avd 模拟器的替代品