I am unable to launch uiautomator through mac terminal. I get the below error when I typed Android or Uiautomator in the terminal, or click uiautomator from tool folder.
ERROR Djava.ext.dirs=/Users/ade/Library/Android/sdk/tools/lib/x86_64:/Users/ade/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. logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed]
My PATH is
export JAVA_HOME=$(/Users/ade/Documents/java_home)
PATH=$PATH:$JAVA_HOME
export M2_HOME=/Users/ade/Documents/apache-maven-3.5.2
export PATH=$PATH:$M2_HOME/bin
ANDROID_HOME=/users/ade/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
Uiautomator -classpath:/Users/ade/Library/Android/sdk/tools/lib
? Alternatively, you could try some of the options in the related questions list.