简体   繁体   English

我的 UIautomator 没有在 mac 中启动。 我已尽一切可能

[英]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 配置文件并运行该命令。

  1. open ~/.bash_profile打开 ~/.bash_profile
  2. source ~/.bash_profile来源 ~/.bash_profile
  3. uiautomatorviewer uiautomator查看器

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.

相关问题 Appium无法安装在我的Mac上。 我四重检查了我能想到的一切 - Appium will not install on my mac. I have quadruple checked everything I can think of Gem::Ext::BuildError: 错误:无法在 mac 上构建 gem 本机扩展。 无法安装 racc - Gem::Ext::BuildError: ERROR: Failed to build gem native extension on mac. unable to install racc 当我将 object 属性从“LastWriteTime”更改为“CreationTime”时,我的脚本不起作用,它只是删除了所有内容? - My script doesnt work when I change the object property from “LastWriteTime” to “CreationTime”, it just deletes everything? 如何使用 python 和 email 从我的控制台捕获所有内容? - How can I capture everything from my console using python and email it? 通过UIautomator查找元素 - Finding elements through UIautomator 原始错误:io.appium.uiautomator2.common.exceptions.UiAutomator2Exception - Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception 使用 Appium 与 Uiautomator 的优势 - Advantages of using Appium vs Uiautomator 生成失败:使用uiautomator android进行Gradle - Build Failed : Gradle with uiautomator android 从 uiautomator 的 AutoCompleteTextView 中选择项目 - Select item from AutoCompleteTextView in uiautomator UiAutomator - 将小部件添加到主屏幕 - UiAutomator — Add Widget to Home Screen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM