Error:
Invalid command android UnityEditor.HostView:OnGUI()
CommandInvokationFailure:
Unable to list target platforms. Ple
The issue is due to incompatibility of unity with latest Android build tools. For MacOS here's a one liner that will get it working for you:
cd $ANDROID_HOME; rm -rf tools; wget http://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip; unzip tools_r25.2.5-macosx.zip