刚开始启动服务时,弹出授权提示,以为是手机app权限问题,后来debug后,发现了一个警告日志:UiAutomator did not shut down fast enough, calling it gone

在appium启动服务时调用adb.js文件,执行

info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session

而出现这个错误,经查阅资料解决方案:

找到Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js文件,并修改如下:

找到这行,

var outlines = stdout.split("\n");

在其下面添加

outlines.shift()

appium报错信息:Could not extract PIDs from ps output. PIDS: [], Procs: ["bad pid 'uiautomator'"]”
    





		
 appium+Java 自动化测试真机测试时报错“info: [debug] Error: Could not extract PIDs from ps output. PIDS: [], Procs: ["bad pid 'uiautomator'"]”

appium报错信息:Could not extract PIDs from ps output. PIDS: [], Procs: ["bad pid 'uiautomator'"]”
    





		
 appium+Java 自动化测试真机测试时报错“info: [debug] Error: Could not extract PIDs from ps output. PIDS: [], Procs: ["bad pid 'uiautomator'"]”

 

相关文章:

  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2021-04-04
  • 2021-10-20
  • 2022-12-23
  • 2021-07-19
  • 2021-10-26
  • 2022-01-18
相关资源
相似解决方案