While taking a screenshot from UI Automation Viewer, getting the error--
Error obtaining UI hierarchy Reason: Unexpected error while obtaining UI hierarchy Details: java.lang.reflect.InvocationTargetException
Please note that Appium server is stopped (Application closed)