大神方案:
在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