.

UiAutomatorViewer : Error obtaining UI hierarchy

Error obtaining UI hierarchy

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







Solution:

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.

2 comments :

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

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

    ReplyDelete

Recent Posts