top of page

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





257 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 object-oriented, interpreted, lightweight and powerful programming la

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 written in Java then you would need Java. You need a correct r

bottom of page