I am trying to run Hierarchy Viewer. developer.android.com says to
“Connect your device or launch an emulator.
From a terminal, launch hierarchyviewer from your SDK /tools directory.”
I tried finding the hierarchy viewer in sdk/tools, but couldn’t find it. I realize my difficulty may just be the result of me being a total noob so I could just be missing something basic.
How do I run hierarchyviewer?
Thanks!
Just had the same issue. It looks like version 7 of SDK Tools does not include the executable for unknown reason (you may download the SDK and see that it’s not there). Therefore, an update removes the executable even if it was there before. However, the executable is not an *.exe, but just a *.bat, which uses the HierarchyViewer.jar in the lib folder.
So I just copied the hierarchyviewer.bat file from the 6th version into the tools folder and it worked.
Note, that you have to type hierarchyviewer or hierarchyviewer.bat to start it, not hierarchyviewer.exe.