4

It used to work well.But recently I upgraded my Android Studio to 2.3 and I find the hierarchy viewer disappears.I can't find it both in the sdk/tools directory and the Android Device Monitor.

enter image description here

enter image description here

John Joe
  • 12,412
  • 16
  • 70
  • 135
Allen Vork
  • 1,536
  • 3
  • 16
  • 29
  • Possible duplicate of [Does Android Studio have a Hierarchy Viewer?](http://stackoverflow.com/questions/25390405/does-android-studio-have-a-hierarchy-viewer) – Malakai Mar 13 '17 at 09:16
  • I saw this and it doesn't work.I still can't find the hierarchy viewer. – Allen Vork Mar 13 '17 at 09:21
  • [How can I Use Hierarchy Viewer](https://stackoverflow.com/a/45055690/6521116) – LF00 Jul 12 '17 at 11:05

3 Answers3

7

Latest build tools (25.3.0) removes hierarchy viewer.

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

BlotCoo
  • 128
  • 5
4

"The Layout Inspector available in Android Studio 2.2 is an early release. It's a work in progress that will supersede the Hierarchy Viewer tool once it is feature complete. For now, it provides a quick solution to inspect the view properties of your layout without leaving the IDE. " I find it in http://tools.android.com/tech-docs/layout-inspector.

According to it the Hierarchy Viewer is removed and we should use the layout inspector instead?

Allen Vork
  • 1,536
  • 3
  • 16
  • 29
  • 2
    what's more, the Layout Inspector always gives me an error "Error obtaining view hierarchy: Unexpected error: empty view hierarchy" – Allen Vork Mar 13 '17 at 09:48
1

You can find it in the Android Studio with path Tools > Android > Android Device Monitor > Window > Open perspective > Hierarchy View

You can refer this very detail post for more.

LF00
  • 27,015
  • 29
  • 156
  • 295