[英]UIAutomator unable to launch the screen and showing an error message
On opening UIAutomator and trying to inspect, the screen is not showing. 在打开UIAutomator并尝试检查时,屏幕未显示。 It shows an error message as: 它显示错误消息为:
Error obtaining UI hierarchy 获取UI层次结构时出错
Reason: Error while obtaining UI hierarchy XML file.com.android.ddmlb.SynchException.Remote object doesn't exist. 原因:获取UI层次结构XML file.com.android.ddmlb.SynchException.Remote对象时出错。
Though my Appium server is stopped, then also showing same error message. 尽管我的Appium服务器已停止,但也显示了相同的错误消息。 Please help me to inspect an element using UIAutomator 请帮助我使用UIAutomator检查元素
Solutions: 解决方案:
1. Disconnect your device and reconnect it and take new screen shot using UIAutomator. 1.断开设备并重新连接,然后使用UIAutomator拍摄新的屏幕截图。
OR 要么
2. Kill adb.exe from task manager and relaunch UIAutomator. 2.从任务管理器中杀死adb.exe,然后重新启动UIAutomator。
This happens when you stop your appium script in middle and UIAutomator was in use and does not release the adb instance. 当您在中间停止appium脚本并且使用UIAutomator且不释放adb实例时,会发生这种情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.