问题
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