I try to launch hierarchy viewer from my ~/Library/Android/sdk/tools directory, and it says
bash: hierarchyviewer: command not found.
Although I can see the hierarchyviewer tool is in the directory by typing ls.
If I type which hierarchyviewer, nothing happens. I tried other questions from StackOverflow and nothing worked. Any idea?