无法运行Monkeyrunner脚本

时间:2018-07-03 04:18:44

标签: java android android-studio terminal

我想对Monkeyrunner进行一些测试,但它无法正常工作,因此我在终端中运行了Monkeyrunner并出现了类似错误

-Djava.ext.dirs=/Users/name/Library/Android/sdk/tools/lib:/Users/name/Library/Android/sdk/tools/lib/x86_64 is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

我找到了/ 86_64路径,我认为这是正确的,那怎么了?我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

monkeyrunner不适用于最新的Java,您必须使用Java 8

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html