简体   繁体   English

UIAutomator无法启动屏幕并显示错误消息

[英]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.

相关问题 消息未显示在模拟器屏幕上 - Message not showing on emulator screen Crashlytics没有发送崩溃报告,而是显示带有错误消息的红色屏幕 - Crashlytics not sending crash report instead showing red screen with error message 仅在Android首次启动时显示设置屏幕 - Showing the setup screen only on first launch in android UiAutomator - 将小部件添加到主屏幕 - UiAutomator — Add Widget to Home Screen 编译UIautomator时出错 - Error during compiling UIautomator Android App首次启动时显示空白屏幕,但重新启动时显示内容 - Android App showing blank screen on first launch but showing the content on relaunch 尝试获取模拟器屏幕或连接的设备的屏幕截图时,uiautomator Viewer错误 - uiautomator viewer error while trying to take the screenshot of the emulator screen or either the device connected 如何通过使用UIAUTOMATOR从Android本机应用程序中的EdiText获取验证错误消息 - How to get validation error message from EdiText in android native application by using UIAUTOMATOR 没有显示AlertDialog,也没有错误消息 - AlertDialog not showing, and no error message 在屏幕方向更改时显示Logcat消息 - Showing Logcat message on screen orientation change
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM