【发布时间】:2020-09-21 05:05:30
【问题描述】:
我在 mac 上打开 uiautomatorviewer 时遇到问题。
这是我在发出命令 uiautomatorviewer 时在终端上得到的:
???@???-MacBook-Pro-2 libexec % uiautomatorviewer
SWT folder '/usr/local/Caskroom/android-sdk/4333796/tools/lib/
ERROR: JAVA_HOME is set to an invalid directory: /usr/libexec/java_home
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.' does not exist.
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
有什么建议吗?
【问题讨论】:
标签: java appium android-uiautomator