UIautomatorviewer 无法创建 java 虚拟机 [英] UIautomatorviewer could not create java virtual machine

查看:50
本文介绍了UIautomatorviewer 无法创建 java 虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在 Mac 上使用 Appium 和 Android Studio.当我尝试从命令行启动 uiautomatorviewer 时,出现以下错误:

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 不受支持.请改用 -classpath.错误:无法创建 Java 虚拟机.

-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.

推荐答案

问题是我安装了 Java 9.我卸载了 Java 9,安装了 Java 8,它运行没有任何问题.

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

这篇关于UIautomatorviewer 无法创建 java 虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆