无法从我的 Windows 10 启动 uiAutomatorViewer :: 不支持获取 -Djava.ext.dirs=..\lib\x86_64;..\lib改用 -classpath

问题描述

我无法从 Windows 10 启动 uiautomatorviewer。我使用的是 JAVA 版本 15。

C:\Users\Bhavya\AppData\Local\Android\Sdk\tools\bin>uiautomatorviewer
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported.  Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

有人可以建议我该怎么做吗?提前致谢。

解决方法

将已安装的 Java 版本降级到我的系统后,我可以启动 UI Automator。

要成功启动 UI Automator,我们需要运行 Java 8。