Okay, so I am trying to get to know the android studio and been playing with few projects. My question is how can I run or debug an app and then open the hierarchy view on it. If I try to open the Android Device Monitor, while the app is running, I get the message: "Following debug sessions will be closed:xx". I see a small Android DDMS window, which opens while debugging or running, where I see the options for Method tracing and allocation tracking, but what about Hierarchy view?
Asked
Active
Viewed 1,964 times
2 Answers
3
I'm not sure about the gui, but there are instructions for launching it from the cli, here.
- From a terminal, launch hierarchyviewer from the
<sdk>/tools/
directory.
You can determine your <sdk>
directory in Android Studio via:
File -> Project Structure -> SDK Location

Thomas G Henry LLC
- 10,887
- 8
- 30
- 32
-
1Seems like that's all she wrote: http://developer.android.com/tools/help/hierarchy-viewer.html – Thomas G Henry LLC Jan 10 '15 at 22:28
0
execute the following:
./Users/<YourUser>/Library/Android/sdk/tools/bin/uiautomatorviewer
I've made an alias for it:
alias viewer='./Users/<YourUser>/Library/Android/sdk/tools/bin/uiautomatorviewer'
path might be different so locate it:
locate uiautomatorviewer

Alon Kogan
- 3,258
- 1
- 21
- 20