Android: Hierarchy Viewer doesn't exist

岁酱吖の 提交于 2019-12-21 19:59:01

问题


I am using Android Studio 2.3 on Mac Sierra and I could not find Hierarchy Viewer when I open Device Monitor. There is no viewer on the perspectives list. Does anybody know why is that?


回答1:


Can't comment, no rep.

After updating to the latest build tools, hierarchy viewer and a bunch of other stuff was removed from the tools directory. I downloaded the tools separately from the Android Studio download page and it included the hierarchy viewer. Not sure what's going on, but it seems updating build tools in Android Studio removes the hierarchy viewer.

Edit: Hierarchy viewer is listed under the deprecated features from Build tools 25.3.0

http://tools.android.com/recent/androidsdktoolsrevision2530feb2017




回答2:


According to google information(http://tools.android.com/recent/androidsdktoolsrevision2530feb2017),hierarchy view is deprecated,and we should use Layout Inspector now (http://tools.android.com/tech-docs/layout-inspector)




回答3:


It's not gone, it's location has changed

Tools > Android > Android Device Monitor > Window > Open perspective > Hierarchy View




回答4:


The name has changed and the location also has changed,

Tools > layout inspector



来源:https://stackoverflow.com/questions/42691057/android-hierarchy-viewer-doesnt-exist

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