uiautomatorviewer杩炴帴鏈哄櫒鐐瑰嚮鎶ラ敊Unexpected error while obtaining UI hierarchy

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了uiautomatorviewer杩炴帴鏈哄櫒鐐瑰嚮鎶ラ敊Unexpected error while obtaining UI hierarchy相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/href' title='href'>href   auto   鏂规硶   鏂囨湰鏂囦欢   鎱㈡參   瑁呭寘   椤甸潰   src   杩炴帴   

鏂规硶涓€锛?/span>

鍙傝€冿細https://www.cnblogs.com/lucky0425/p/10955252.html

杩愯寮€瀹夊崜鑷甫鐨剈iautomatorviewer.bat锛?span style="font-size: 13px;">鎵撳紑鍚庤繛鎺ユ墜鏈猴紝鎶ラ敊濡?/span>涓嬶細

鎶€鏈浘鐗? src=

绾犵粨浜嗗緢闀挎椂闂存渶缁堢敤涓€浣嶅ぇ绁炵殑鏂规硶寰楀埌瑙e喅锛岃櫧鐒朵笉澶噦鍘熺悊浣嗘槸宸茶В鍐充簡鎴戠殑闂锛屽師鐞嗕互鍚庢參鎱㈢爺绌?/p>

1.鍦‥鐩樻牴鐩綍涓嬪垱寤篴pp.png鏂囨湰鏂囦欢

2.鍦‥鐩樻牴鐩綍涓嬪垱寤篴pp.uix鏂囨湰鏂囦欢

3.鎵ц浠ヤ笅adb鍛藉悕锛?nbsp;    

                  adb shell uiautomator dump /sdcard/app.uix

                  adb pull /sdcard/app.uix E:/app.uix

                  adb shell screencap -p /sdcard/app.png

                  adb pull /sdcard/app.pngE:/app.png

4.杩愯uiautomatorviewer.bat,瀵煎叆鏂囦欢

鎶€鏈浘鐗? src=

5.鍐嶆杩炴帴鎵嬫満锛屽彲浠ョ湅鍒版墜鏈烘埅灞忔椂鐨勯〉闈紝浣嗗彧鏈変竴寮犲浘鐗囷紝涓嶈兘瀹屾暣杩愯APP

 

鏂规硶浜岋細

鍙傝€冿細https://blog.csdn.net/qq_42559334/article/details/83862323

1.鍦ㄥ畨瑁匒ndroid SDK鐩綍涓嬶紝鎵惧埌SDK Manager.exe锛岀偣鍑昏繘鍏?/span>

鎶€鏈浘鐗? src=

 

 2.閫変腑鐪熸満鐨勫畨鍗撶増鏈彿锛屽嬀閫夊畨瑁呭寘锛岀偣鍑诲畨瑁?/p>

鎶€鏈浘鐗? src=

 

3.瀹夎瀹屾垚鍚庯紝閲嶅惎uiautomatorviewer.bat

 

以上是关于uiautomatorviewer杩炴帴鏈哄櫒鐐瑰嚮鎶ラ敊Unexpected error while obtaining UI hierarchy的主要内容,如果未能解决你的问题,请参考以下文章

20210622锝滄妧鏈垎浜綔mysql 杩滅▼鏃犳硶杩炴帴澶勭悊

Bash 涓娇鐢ㄦ帶鍒惰繍绠楃杩炴帴鍛戒护 | Linux 涓浗

HTTP keepalive璇﹁В

鏈哄櫒瀛︿範瀹炴垬-Logistics鍥炲綊

鏈哄櫒瑙嗚鍏夋簮