Error obtaining UI hierarchy error – UI Automator Viewer

While taking the Device Screenshot (uiautomator dump) on UI Automator Viewer if you receive the below error

Error obtaining UI hierarchy
Error while obtaining UI hierarchy XML file:
Remote object dosen’t exist!
  • The first option is to shutdown your appium server by pressing CTRL + C and then press y to Terminate batch job.
  • The other solution is to kill the adb server and start again. Run the below commands in cmd to restart the adb server
adb kill-server
adb start-server



Join Discussion

This site uses Akismet to reduce spam. Learn how your comment data is processed.