top of page
Writer's picturePravendra Chauhan

Error obtaining UI hierarchy Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncExc

How to resolve

Error obtaining UI hierarchy Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist


Solution 1:

The best way is to kill the adb server and start it again.

  • sudo adb kill-server

  • sudo adb start-server

Solution 2:

Try Restarting your device, which worked in some cases.


Solution 3:

run below command:

adb shell am force-stop com.android.ddmlib


If you find some other solution, please do the comment or contact us to revise this post.


it will help other readers to resolve the issues





298 views1 comment

Recent Posts

See All

Basic JavaScript interview Questions

Q1) What is JavaScript? Ans. JavaScript is a scripting language used for programming web pages as well as server systems. It is an...

Why we need node js to start Appium server?

If Appium tools are written in Node then you Need node to run it. If they were written in Python then you would need Python. If they were...

1 Comment


pravendra.kotak
Jun 25, 2020

Sometimes it could be resolved using Appium desktop usage instead of uiautomatorviewer


uiautomatorviewer sometimes causing issues


Appium desktop is the best tool to find out locators for android as well as iOS application

Like
bottom of page