Got an error when opened Uiautomatorviewer today
Reason:
An unexpected error occurred while obtaining the Ul hierarchy
export\import uix
adb shell uiautomator dump /sdcard/app.uix
adb pull /sdcard/app.uix D:/android-sdk/app.uix
export\import png
adb shell screencap -p /sdcard/app.png
adb pull /sdcard/app.png D:/android-sdk/app.png