After launching the app in the emulator, I tried to locate the objects by uiautomateviewer but when i tried to capture the screenshot it throws the error as “Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn’t exist!”.
I tied with the above steps like stopping the appium and tried to capture the sreen shot via UIautomatorviewer.
But after stopping the appium server(Ctrl+C from command prompt) automatically the launched app in emulator gets terminated. So because of this i can’t able to capture the screen shot and identify the obeject values.
Please help me to solve this issue.