uiautomatorviewer报错:java.lang.reflect.InvocationTargetException

我的未来我决定 提交于 2019-12-17 00:08:03

在使用uiautomatorviewer对设备进行截屏时,出现异常
Unexpected error while obtaining UI hierarchy java.lang.reflect.InvocationTargetException

解决方法:
通过android studio对sdk tool进行了更新,从25.x 升级到了26.1.1
升级后sdk manager没有界面了,uiautomatorviewer移动到 ./sdk.tools/bin目录下,重新启动后能够正常截屏了。

另一种通过adb截屏的解决方法:

使用uiautomatorviewer报错Error obtaining UI hierarchy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!