启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

时间:2021-03-28 18:29:40

今天我在调试APP自动化的时候遇到了一个问题,如今解决了总结下:

首先,我的前置工作都准备的很好了,然后就想着运行下我的代码,可是天不遂人愿,遇到了这么一个问题:

启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

 

 看上图报错:UiAutomator exited unexpectedly with code 0, signal null

我的解决问题步骤是这样的:

1、adb shell 命令进入shell模式

启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

2、进入到data/local/tmp 目录下面

启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

3、用ls命令查看当前的目录文件:

启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

4、将AppiumBootstrap.j 这个文件改名为:AppiumBootstrap.jar

启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

5、退出shell模式

启动APP遇到“UiAutomator exited unexpectedly with code 0, signal

 

重新运行了代码,就OK了

OK了,完美解决此问题