I am getting the following error when trying to launch Android Device Monitor from the Tools window in Android Studio on a Mac.
and when I open the log file
The above answer didn't work for me. I'm using JAVA8, both the Android JAVA_HOME and /usr/bin/java. What is weirder for me is my tools/ directory is missing the uiautomationviewer tool as well. So it made me wonder if something went wrong during the installation.
What I ended up doing was downloading an older verion of SDK-tools (I followed instructions here), and replaced the entire sdk/tools folder. And it worked....