使用uiautomatorviewer.bat抓取androidO 、P版本时候界面时候出现unexpected error while obtaining UI hierarchy
可以执行以下指令 抓取后保存在d:/1/目录下
adb shell uiautomator dump /sdcard/screen.uix
adb pull /sdcard/screen.uix d:/1/screen.uix
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png d:/1/screen.png
再打开它即可