[英]Appium tests executes with java 11 while uiautomatorviewer throws an error. Is uiautomatorviewer supported by java 11?
在安裝了 Java11 並且設置了正確的 env 路徑的情況下執行 UIAUTOMATORVIEWER 時出錯。 不過,我可以使用 java11 執行 appium 測試。
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
編輯:uiautomatorviewer 適用於 java8,java11 有什么解決方法嗎?
此錯誤與 UIAutomatorViewer 無關,但由於它是一個舊工具,它可以依賴 32 位 JDK。 您可以檢查此答案以進行修復。
如果您使用的是 Appium,那么UIAutomatorViewer顯然是一個糟糕的選擇,因為 Appium 不再使用原始的 UIAutomator:它已被棄用,取而代之的是 UiAutomator2 和 Espresso 驅動程序
你最好試試官方 Appium 桌面
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.