Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIautomatorviewer could not create java virtual machine

I'm starting to use Appium and Android Studio on Mac. When I try to launch uiautomatorviewer from the command line, I'm getting the following errors:

-Djava.ext.dirs=/Users/chris.gill/Library/Android/sdk/tools/lib/x86_64:/Users/chris.gill/Library/Android/sdk/tools/lib is not supported. Use -classpath instead. Error: Could not create the Java Virtual Machine.

Please can someone help me resolve this problem.

like image 671
ChrisG29 Avatar asked Oct 31 '17 07:10

ChrisG29


1 Answers

The problem was that I had Java 9 installed. I uninstalled Java 9, installed Java 8 and it worked without any problems.

like image 134
ChrisG29 Avatar answered Sep 18 '22 14:09

ChrisG29