uiautomatorviewer Error obtaining UI hierarchy

今天是要DDMS时,点击DUMP 提示Error obtaining UI hierarchy,

最后解决方案是,把下面的代码放到bat脚本中,运行一次就可以了

call adb shell uiautomator dumpcall 
call adb pull /storage/sdcard/window_dump.xml .
call window_dump.xml

猜你喜欢

转载自blog.csdn.net/qq_36237165/article/details/89509425