Android10系统启动uiautomatorviewer.bat报错“unexpected error while obtaining UI hierarchy”解决办法
1、直接下载根目录下的uiautomatorviewer.jar,替换你本地的${ANDROID_HOME}/tools/lib下的uiautomatorviewer.jar即可
2、目前默认使用adb截图和dump xml
adb截图使用的是LvmamaXmlKit,所以使用此功能需要把这个#jar 导入到手机中#,命令如下:
//复制LvmamaXmlKit.jar到本地D盘根目录下
adb push D:\LvmamaXmlKit.jar /data/local/tmp/
文件下载路径:https://github.com/yaming116/uiautomatorview
参考:https://github.com/yaming116/uiautomatorview