unable to open uiautomatorviewer on mac

623 views Asked by At

i am getting below error while trying to open uiautomatorviewer from both terminal and try to open file itself.

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. Use -classpath instead. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

1

There are 1 answers

0
nishu2811 On

uiautomatorviewer only compatible with java 8. But there is another problem with mac. Even if you will be able to open the uiautomatorviewer, it won't work.Below screenshot for reference.

UI automator and running in terminal

However you can switch of appium inspector