android8.1以后sdk tools自带的uiautomator直接打开,截取不到机器界面信息
那么只能手动获取了:

1.截取uix资源文件
adb shell uiautomator dump /sdcard/screen.uix
adb pull /sdcard/screen.uix D:/screen.uix
注明:新手机地址改成:/data/local/tmp/**.uix
2.截取截图
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png D:/screen.png
3.打开sdk tools目录下的uiautomatorviewer.bat,导入从机器获取的截图和资源文件
Unexpected error while obtaining UI hierarchy java.lang.reflect.InvocationTargetException

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-06-21
  • 2021-09-19
  • 2021-07-20
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2021-06-04
  • 2021-08-02
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案