Error:
Invalid command android UnityEditor.HostView:OnGUI()
CommandInvokationFailure:
Unable to list target platforms. Ple
Easier solution: set the environment variable USE_SDK_WRAPPER=1, or hack tools/android.bat to add the line "set USE_SDK_WRAPPER=1". This prevents android.bat from popping up a "y/n" prompt, which is what's confusing Unity.