簡體   English   中英

我的 UIautomator 沒有在 mac 中啟動。 我已盡一切可能

[英]My UIautomator is not starting in mac. I have done everything possible

我正在學習 appium 並且我已經設置了所需的一切。 我有設置路徑,安裝了 android studio,運行 appium 並創建了一個虛擬 android 設備。 但是當我寫 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 ~ % 

誰能幫幫我

答:我曾經遇到過這個問題,有時 env var 不會加載並且會拋出錯誤,打開並加載 bash 配置文件並運行該命令。

  1. 打開 ~/.bash_profile
  2. 來源 ~/.bash_profile
  3. uiautomator查看器

B. 如果 appium server 正在運行,請嘗試關閉它並運行命令。

嘗試以下命令:

sudo ./uiautomatorviewer

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM