【Appium问题】Make sure the application under test does not crash and investigate the logcat output.

问题

启动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

  • 6
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值