Mac:无法在Mac High Seirra上打开uiautomatorviewer

时间:2018-04-13 20:18:58

标签: android macos

无法在Mac上打开uiautomatorviewer,

以下是来自终端的日志

/Users/ranjith/Library/Android/sdk/tools_mac/tools/uiautomatorviewer ; exit;
Ranjiths-MacBook-Pro-2:~ ranjith$ /Users/ranjith/Library/Android/sdk/tools_mac/tools/uiautomatorviewer ; exit;
-Djava.ext.dirs=/Users/ranjith/Library/Android/sdk/tools_mac/tools/lib/x86_64:/Users/ranjith/Library/Android/sdk/tools_mac/tools/lib is not supported.  Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

1 个答案:

答案 0 :(得分:0)

修正了以下步骤的问题

  • 安装了java 8
  • 导航到/ Library / Java / JavaVirtualMachines并删除了java的默认版本(java 10)

它有效