while clicking on i am getting below error:

/Users/XXXX/Library/Android/sdk/tools/bin/uiautomatorviewer ; exit;
-Djava.ext.dirs=/Users/bigdaddy/Library/Android/sdk/tools/lib/x86_64:/Users/XXXX/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.

PATH ARE LIKE THIS:

PATH=”/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:${PATH}”
export PATH

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
export JAVA_HOME

export PATH=”/Users/XXXX/Library/Android/sdk/platform-tools”:${PATH}”
export PATH=”/Users/XXXX/Library/Android/sdk/tools”:${PATH}”
export PATH=”/Users/XXXX/Library/Android/sdk/tools/bin/”:${PATH}”
ANDROID_HOME=/Users/XXXX/Library/Android/sdk
export ANDROID_HOME



Source link https://sqa.stackexchange.com/questions/35563/-to--uiautomatorviewer-in----

LEAVE A REPLY

Please enter your comment!
Please enter your name here