You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Appium Inspector启动失败:UiAutomator2驱动adbExec执行错误

解决Appium Inspector启动时INSTALL_FAILED_UPDATE_INCOMPATIBLE签名不匹配错误

问题概述

启动Appium Inspector时创建会话失败,核心错误为:

INSTALL_FAILED_UPDATE_INCOMPATIBLE: 现有包io.appium.uiautomator2.server.test签名与新版本不匹配;忽略!

这是因为模拟器中已安装的UiAutomator2测试服务包,与Appium当前要部署的新版本包签名不一致,导致增量安装失败。

解决方案

1. 卸载模拟器中冲突的旧包

通过adb命令直接卸载两个关联的UiAutomator2服务包:

adb -s emulator-5554 uninstall io.appium.uiautomator2.server.test
adb -s emulator-5554 uninstall io.appium.uiautomator2.server

执行完成后,重新尝试启动Appium Inspector。

2. 清理Appium本地缓存

删除用户目录下的.appium文件夹(路径:C:\Users\Andrius\.appium),该目录存储了下载的UiAutomator2驱动包。删除后重启Appium,它会自动重新下载匹配签名的官方包。

3. 重新安装UiAutomator2驱动

执行以下命令彻底重装驱动,确保驱动文件完整无损坏:

appium driver uninstall uiautomator2
appium driver install uiautomator2

4. 确认模拟器环境纯净

如果上述步骤无效,重新创建Android Studio虚拟设备时,选择官方默认系统镜像(避免使用自定义修改过签名的镜像),确保模拟器系统未被篡改。

补充说明

即使未主动修改配置,Appium后台自动更新驱动、模拟器系统自动更新等隐性操作都可能导致签名不匹配问题,清理旧包和缓存是最直接的修复方式。

内容的提问来源于stack exchange,提问作者Andrius

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 01:17:41