How to open uiautomatorviewer in mac


#1

Hi, Im trying to do appium automation in Android on MAC. Ive installed, Android Studio, JDK and ive also set ANDROID_HOME and JAVA_HOME. I go to the uisutomatorviewer location and when I try to run it, the below error is getting displayed.

-Djava.ext.dirs=/Users/name/Library/Android/sdk/tools/lib/x86_64:/Users/name/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.

can anyone provide me a solution to this?


#2

Hi,

Have you got this resolved?

I am also facing the same issue.

When I tried to launch the uiautomatorviewer . i am getting below error. I am trying on mac and using JAVA java 10.0.2 . Can you please some one help on the same?

Last login: Thu Aug 9 22:41:34 on ttys002
LBELALAD-M-91G4:~ lbelalad$ uiautomatorviewer
-Djava.ext.dirs=/Users/lbelalad/Library/Android/sdk/tools/lib/x86_64:/Users/lbelalad/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.