Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Getting the exception in latest Appium Library for get("logcat") for Android device

未關閉
#1,666 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 5 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
android, java
領域
mobile, testing-qa

研究方向

從 issue 中描述的 AndroidDriver 以及 manage().logs().get("logcat") 和 getAvailableLogTypes() 呼叫開始,比較 Java client 7.5.1 與 8.0.0。檢視連結的 Appium 記錄和 W3C logging 行為,以判斷 404 是 client 回歸問題,還是 endpoint 無法使用。完成標準是找出原因並記錄或修正此行為,同時對 Android 記錄擷取進行回歸檢查。

由索引模型根據 Issue 內容生成。

描述

Description

When we try to get the logs from manage().logs().get("logcat") we are getting 404 errors, till 7.5.1 version this method was working fine, but when we have switched to 8.0.0 Java client this is throwing the error.

Environment

  • Java client build version : Java client library 8.0.0
  • Real device or emulator/simulator: Real Device
  • Cloud Platform : Sauce Labs
  • App : Native App

Details

We have tried the below steps :
AndroidDriver mobileAndroidDriver = new AndroidDriver ();
mobileAndroidDriver.manage().logs().get("logcat") throws 404 error
mobileAndroidDriver.manage().logs().getAvailableLogTypes() Also throws errors

AppiumDriver driver = new AndroidDriver();
driver.manage().logs().get("logcat") throws 404 error.
driver.manage().logs().getAvailableLogTypes() Also throws errors

As we cannot call now AppiumDriver driver = new AndroidDriver(); in new Java clent, we tried with AndroidDriver mobileAndroidDriver = new AndroidDriver (); still no luck.

We couldnt see any doc mentioning there is a change of this logs as its not deprecated.

Link To Appium Logs

(https://gist.github.com/krnnarayan/e1e7f8ea446b2a25c69ab86a53c52a11)

主要語言
Java
星號
1.3k
分支
755
平均合併
5 天 14 小時
30 天內合併 PR
8

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

appium/java-client 的其他 Issue

查看 appium/java-client 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。