[英]My UIautomator is not starting in mac. I have done everything possible
I am learning appium and I have set up everything that is required.我正在学习 appium 并且我已经设置了所需的一切。 I have setup paths, installed android studio, run appium and created a virtual android device too.
我有设置路径,安装了 android studio,运行 appium 并创建了一个虚拟 android 设备。 But when i am writing uiautomatorviewer its giving me an error
但是当我写 uiautomatorviewer 时它给我一个错误
mac@Macs-MacBook-Pro ~ % uiautomatorviewer
-Djava.ext.dirs=/Users/mac/Library/Android/sdk/tools/lib/x86_64:/Users/mac/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.
mac@Macs-MacBook-Pro ~ %
Can anyone help me please谁能帮帮我
A. I encountered this issue once, sometime env var doesn't load and it throws error, open and load bash profile and run that command.答:我曾经遇到过这个问题,有时 env var 不会加载并且会抛出错误,打开并加载 bash 配置文件并运行该命令。
B. if appium server is running, try to close it and run the command. B. 如果 appium server 正在运行,请尝试关闭它并运行命令。
Try the following command:尝试以下命令:
sudo ./uiautomatorviewer
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.