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.

No comments :

Post a Comment

Recent Posts