简体   繁体   English

mac无法打开uiautomatorviewer

[英]unable to open uiautomatorviewer on mac

i am getting below error while trying to open uiautomatorviewer from both terminal and try to open file itself.我在尝试从两个终端打开 uiautomatorviewer 并尝试打开文件本身时遇到错误。

MacBook-Pro:~ aalpesh81$ uiautomatorviewer -Djava.ext.dirs=/Users/aalpesh81/Library/Android/sdk/tools/lib/x86_64:/Users/aalpesh81/Library/Android/sdk/tools/lib is not supported. MacBook-Pro:~ aalpesh81$ uiautomatorviewer -Djava.ext.dirs=/Users/aalpesh81/Library/Android/sdk/tools/lib/x86_64:/Users/aalpesh81/Library/Android/sdk/tools/lib 不受支持。 Use -classpath instead.请改用 -classpath。 Error: Could not create the Java Virtual Machine.错误:无法创建 Java 虚拟机。 Error: A fatal exception has occurred.错误:发生了致命异常。 Program will exit.程序将会退出。

uiautomatorviewer only compatible with java 8. But there is another problem with mac. uiautomatorviewer只兼容java 8。但是mac还有一个问题。 Even if you will be able to open the uiautomatorviewer, it won't work.Below screenshot for reference.即使您能够打开 uiautomatorviewer,它也不起作用。以下截图供参考。

UI automator and running in terminal UI 自动化程序并在终端中运行

However you can switch of appium inspector但是你可以切换 appium 检查器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM