安卓测试工具uiautomator无法打开失败报错解决方案

我们在测试过程中经常会遇到uiautomator报错,识别不了

先用 adb shell ps |grep uiautomator 查看这个进程,一般性都是因为已经有一个进程占用引起的。

所以是被占用了,我们需要结束进程

adb shell kill -9 22493

这个时候再次打开uiautomator工具已经可以正常启动识别了

原文地址:https://www.cnblogs.com/kennyzhou/p/10760711.html