UiAutomatorViewer : Error obtaining UI hierarchy

Error obtaining UI hierarchy

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


If you see this error while trying to load image of connected device in uiautomator then reasons could be one of these:

1. If your device/emulator is not connected. Execute this command in command prompt to check status of connected devices.

adb devices

2.  If you have launched app using appium and trying to load image using uiautomatorviewer.
In this case, close appium and install apk using command line and then try loading device screenshot.


  1. Hi, Still i am getting same issue, Please help me out on this issue

  2. This is duew to the page is not part of Activity ( Which needs to be discussed with the dev to fix this.)

  3. Go to command prompt, kill the server and start the server..
    $ adb kill-server
    $ adb start-server
    After every test run, i do to get the reflection of the device.

  4. Did everything, still problem persist.