I am trying to use UIAutomator Viewer from Android SDK 6.0. When I connect a device with version 5.1.1 or above, I am unable to capture the UI Layout. It says the following:
Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!
Did anyone face the same issue on the latest versions only? If so, please let me know the fix.