Failed resolution of: Ljava/net/http/HttpClient;
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 領域
- mobile, testing-qa
研究方向
從 issue 中連結的重現程式碼和堆疊追蹤開始,然後檢查 AppiumSetup.kt:31 中的 AndroidDriver 實例化,以及追蹤中的 JdkHttpClient 項目。在列出的 KMM 和 Android 環境中重現該失敗;當 AndroidDriver 初始化時不再出現缺少 HttpClient 的錯誤,且測試可以繼續建立 session 時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Description
Attempting to setup Appium in a KMM app, currently working on the Android side. Attempting to run a basic test results in the runtime error in the title when the AndroidDriver() is instantiated.
Environment
- Kotlin 1.9.10
- Java client 9.1.0
- Selenium 4.17.0
- Appium CLI v2.4.1
- MacOS Ventura 13.5.2
- Android API 34
- Pixel 7 Emulator
Details
Please provide more details, if necessary.
Attempting to run the test always fails at driver = AndroidDriver(url, options) and results in the stack trace below. The missing library, java.net.http.HttpClient, doesn't appear to be available on Android.
Failed resolution of: Ljava/net/http/HttpClient;
at org.openqa.selenium.remote.http.jdk.JdkHttpClient.<init>(JdkHttpClient.java:90)
at org.openqa.selenium.remote.http.jdk.JdkHttpClient$Factory.createClient(JdkHttpClient.java:475)
at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:114)
at io.appium.java_client.remote.AppiumCommandExecutor.<init>(AppiumCommandExecutor.java:75)
at io.appium.java_client.remote.AppiumCommandExecutor.<init>(AppiumCommandExecutor.java:102)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:102)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:109)
at com.navusoft.navusaleskmp.test.utils.AuthTest.setUp(AppiumSetup.kt:31)
Code To Reproduce Issue
https://gist.github.com/LivPNavusoft/a190821ffeab12430f651a02727e9b0a
Exception Stacktraces
https://gist.github.com/LivPNavusoft/3ea2a999730d7c2ef6c7d6772ead3131
Link To Appium Logs
None generated, it never connects. Verified I can start a session with AppiumInspector
- 主要語言
- Java
- 星號
- 1.3k
- 分支
- 757
- 平均合併
- 1 天 14 小時
- 30 天內合併 PR
- 29
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
appium/java-client 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
appium/java-client#2426 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 30/100
appium/java-client#2368 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 30/100
appium/java-client#2341 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 15/100
appium/java-client#2323 ·
維護者通常 1 天內回覆
-
java-client 启动报错未關閉
難度 3/5 1-2 天 新手友好度 35/100
appium/java-client#2288 · 1 則留言 ·
維護者通常 1 天內回覆
查看 appium/java-client 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 75/100
521xueweihan/HelloGitHub#4105 ·
-
Awaiting further input from submitter
難度 2/5 1-3 小時 新手友好度 76/100
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
-
Regression in 5.9.0: CuratorCache fails with ClassCastException when the client is not a CuratorFrameworkBase可能已有人在做 @sftwnd 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
-
bug
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆