解决Error while obtaining UI hierarchy XML file:com.android.ddmlib

启动uiautomatorviewer.bat

在UI Automator Viewer中使用 解决Error while obtaining UI hierarchy XML file:com.android.ddmlib_第1张图片

报错:

Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn’t exist! Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn’t exist!

解决方法:

(前提是你的adb已经在环境变量中声明)
打开cmd命令行输入

adb kill-server

cmd显示

adb.e: unknown command kill

然后重新启动uiautomatorviewer.bat,显示

04:01:32 E/adb: * daemon not running; starting now at tcp:5037
04:01:35 E/adb: * daemon started successfully

(时间为我启动的时间)
正常启动UI Automator Viewer

你可能感兴趣的:(Appium,安卓,adb,android)