admin管理员组

文章数量:1584617

问题

启动appium报错
查看最近的报错内容,找了些方法不好用。
Encountered internal error running command: Error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

顺着报错继续向上面找到了这个
appium android.util.AndroidException: INSTRUMENTATION_FAILED: io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner

appium首次启动的时候会给设备安装两个uiautomator的包的
package:io.appium.uiautomator2.server
package:io.appium.uiautomator2.server.test

可以通过命令行查看
adb shell pm list package | grep uiautomator
正常显示应该是两个

如果缺少了哪一个,自己手动进行安装,再次启动appium就可以了。
包在appium 的目录下
/Users/zyh/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks

本文标签: TestapplicationAppiumcrashoutput