uiautomatorviewer报错-Djava.ext.dirs=lib\x86_64;lib is not supported. Use -classpath instead.

错误提示:-Djava.ext.dirs=lib\x86_64;lib is not supported.  Use -classpath instead.

Reason: java version problem

 

Solution:

1. If you have installed multiple versions of java on your computer, please change the location of the java_home environment variable in the environment variable, that is, change the version of java. I am currently java9, so I report an error, and change to 8 is no problem;

2. If 1 does not solve your problem, try this https://www.jianshu.com/p/77db2ea8098f

Guess you like

Origin blog.csdn.net/THMAIL/article/details/111997140