[英]UIAutomator unable to launch the screen and showing an error message
在打開UIAutomator並嘗試檢查時,屏幕未顯示。 它顯示錯誤消息為:
獲取UI層次結構時出錯
原因:獲取UI層次結構XML file.com.android.ddmlb.SynchException.Remote對象時出錯。
盡管我的Appium服務器已停止,但也顯示了相同的錯誤消息。 請幫助我使用UIAutomator檢查元素
解決方案:
1.斷開設備並重新連接,然后使用UIAutomator拍攝新的屏幕截圖。
要么
2.從任務管理器中殺死adb.exe,然后重新啟動UIAutomator。
當您在中間停止appium腳本並且使用UIAutomator且不釋放adb實例時,會發生這種情況。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.