Ui Automator Viewer 使用報錯問題 提示’Error obtaining UI hierarchy‘


大神方案:

  在C:\sdk\android-sdk-windows\tools路徑下的uiautomatorviewer.bat,右鍵編輯打開,在最末端輸入:

call adb shell uiautomator dumpcall 
call adb pull /storage/sdcard/window_dump.xml .
call window_dump.xml


通用方案:
桌面新建 test.bat文件,添加五行代碼,內容如下:
 # 此處輸入任意自己本地路徑
uiautomatorviewer 中導入。
聊勝於無,雖然麻煩,但能解決問題,畢竟頁面就那幾個
感謝大神分享~
來源:https://www.jianshu.com/p/200de8ded032



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM