uiautomatorviewer.bat 打开命令提示符并关闭。从不打开应用程序

uiautomatorviewer.bat opens command prompt and closes. Never opens application

我正在尝试为 Android SDK 启动 uiautomatorviewer.bat。当我单击 .bat 文件时,命令提示符打开,我看到一个命令被输入其中,然后它就关闭了,应用程序永远不会打开。在它因错误而关闭之前,我能够快速获取屏幕截图:

Command prompt with errors

有人对如何解决这个问题有任何想法吗?

我从 java 9 降级到 java 8 并修复了。