appium运行提示UiAutomator exited unexpectedly with code 255, signal null

来源:8-2 错误截图方法重构

慕粉1224429473

2019-10-26

老师您好,我这边运行Appium提示UiAutomator exited unexpectedly with code 255, signal null。场景是设备重启,然后要等重启完毕后再进行操作。脚本没有变化,之前运行并没有出现这个问题。
[UiAutomator] UiAutomator exited unexpectedly with code 255, signal null
Unhandled rejection Error: UiAUtomator shut down unexpectedly
at AndroidBootstrap.callee$2000 (…/…/lib/bootstrap.js:187:42)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js?21)
at invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:185:17)
at new Promise ()
at new F (/usr/local/lib/node_modules/appium/node_modules/_core-js@1.2.7@core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js?21)
at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:209:12)
at UiAutomator.callee$2$0 (…/…/lib/bootstrap.js:184:62)
at UiAutomator.emit (events.js:182:13)
at UiAutomator.changeState (…/…/lib/uiautomator.js:87:10)
at SubProcess. (…/…/lib/uiautomator.js:47:14)
at SubProcess.emit (events.js:182:13)
at ChildProcess.proc.on (…/…/lib/subprocess.js:153:14)
at ChildProcess.emit (events.js:182:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
[Logcat] Logcat terminated with code 0, signal null

写回答

1回答

Mushishi

2019-10-27

表面现象 去看有没有appiumbootstrap.jar,在/data/local/tmp下AppiumBootstrap.jar
如果没有,在appium的node_module目录下面的appium-android-bootstrap\bootstrap\bin找到AppiumBootstrap.jar,然后复制到/data/local/tmp就可

0
0

Python主讲移动端自动化测试框架Appium

APP自动化基础知识、po模型、关键字模型、服务自动化、持续集成

1508 学习 · 1333 问题

查看课程