简体   繁体   中英

UIAutomator unable to launch the screen and showing an error message

On opening UIAutomator and trying to inspect, the screen is not showing. It shows an error message as:

Error obtaining UI hierarchy

Reason: Error while obtaining UI hierarchy XML file.com.android.ddmlb.SynchException.Remote object doesn't exist.

Though my Appium server is stopped, then also showing same error message. Please help me to inspect an element using UIAutomator

Solutions:

1. Disconnect your device and reconnect it and take new screen shot using UIAutomator.

OR

2. Kill adb.exe from task manager and relaunch UIAutomator.

This happens when you stop your appium script in middle and UIAutomator was in use and does not release the adb instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM