Method 1: recommend method 2
reference resources: https://www.cnblogs.com/lucky0425/p/10955252.html
Run Android uiautomatorviewer.bat , open and connect the mobile phone. The error is as follows:
Tangled for a long time, and finally solved with the method of a great God, although I don’t understand the principle, but has solved my problem, the principle later slowly study
1. Create in the e-root directory app.png text file
2. Create in the e-root directory app.uix text file
3. Perform the following ADB naming:
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. Operation uiautomatorviewer.bat , import file
5. Connect the mobile phone again, you can see the screen capture page of the mobile phone, but there is only one picture, which can’t run the app completely
Method 2
reference resources: https://blog.csdn.net/qq_ 42559334/article/details/83862323
1. In the directory of installing Android SDK, find the SDK Manager.exe , click to enter
2. Select the Android version number of the real machine, check the installation package, and click Install
3. After installation, restart uiautomatorviewer.bat
http://www.shangdixinxi.com/detail-1098954.html
https://github.com/yaming116/uiautomatorview
Read More:
- Unexpected error while observing UI hierarchy
- Error reporting UI hierarchy using uiautomatorviewer
- [Solved] uiautomateviewer Tool Error: Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException
- uiautomatorviewer:Error while obtaining UI hierarchy XML file:com.android.ddmlib.SyncException:
- Solve the problem that the virtual machine can’t be opened? Tips on VMware Workstation cannot connect to the virtual machine
- Elememt UI introduces components on demand to report errors
- Mongodb uses Mongo to report error: could’t connect to server 127.0.0.1:27017, connection attempt failed: socket
- Click the button to use in the react project window.open Methods open a new page and click the data again
- Solution to the flash back, error report and unexpected exit of idea MAC windows
- The solution to the problem that the virtual machine and the host SSH can’t connect on vmvare
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- Ubuntu xshell cannot connect to VMware virtual machine solution
- TCP error code 10061: unable to connect because the target machine actively refused http://localhost :8732/Design_ Time_ Addresses/TeacherHelperServic
- Docker machine install syntax error near unexpected token ‘newline’! DOCTYPE HTML problem resolution
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- Anaconda opens Navigator to report an error and a web page appears Navigator Error An unexpected error occurred on Navigator start-up Report
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect EC
- Gt Report Error ssh:connect to host github.com port 22
- Error report when Hyper-V creates virtual machine
- [turn] right click to open the prompt [shellexecute failed (2): is this command correct? (fix)] with Notepad + +