Android 分析UI层次结构XML文件时出错:ubuntu中的UI自动机层次结构文件无效
我试图使用ui automator视图捕获快照,但当我尝试拍摄快照时,出现以下错误:Android 分析UI层次结构XML文件时出错:ubuntu中的UI自动机层次结构文件无效,android,ionic-framework,appium,Android,Ionic Framework,Appium,我试图使用ui automator视图捕获快照,但当我尝试拍摄快照时,出现以下错误: Error while parsing UI hierarchy XML file: Invalid ui automator hierarchy file. 甚至我也多次尝试重新启动设备,但仍然遇到同样的问题。不要使用“uiautomatorviewer”打开automator,而是将其粘贴到您的终端中。它将打开正确的自动变速器 Android/Sdk/tools/bin/uiautomatorviewer
Error while parsing UI hierarchy XML file: Invalid ui automator hierarchy file.
甚至我也多次尝试重新启动设备,但仍然遇到同样的问题。不要使用“uiautomatorviewer”打开automator,而是将其粘贴到您的终端中。它将打开正确的自动变速器
Android/Sdk/tools/bin/uiautomatorviewer
你能做两件事吗,比如,1。解锁设备并将其插入系统。2.然后重新启动appium服务器。如果这对您有帮助,请告诉我。@SurajJogdand也这样做了,但我仍然面临问题。每当您打开uiautomatorviewer时,请确保Appium服务器未在后台运行。@SnehaShinde我已检查过,但服务器未在运行