目录
一、Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn‘t
报错场景
打开Android SDK目录,找到 tools 文件夹,在 tools 文件夹中找到并运行 uiautomatorviewer.bat(Windows系统)或者uiautomatorviewer(Mac或Linux系统)。在UlAutomatorViewer中,点击设备上的应用程序窗口,然后点击"Capture"按钮来获取Ul层次结构XML文件。
在使用uiautomatorviewer来获取UI层次结构XML文件时报错了:Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!