I had tried many solutions online. but they do not work. here is my working solution I found finally.
Solution:
1. First, make sure that ADB devices can query your device
2. Key solution: delete ATX on the mobile phone and re-execute python -m uiautomator2 init
3. Just in case, don’t directly execute the WebEditor. Be sure to execute python -m weditor
Then click Dump Hierarchy to synchronize the screen. Don’t use real-time, just use static.
Read More:
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- [Solved] uiautomatorviewer Error: Error obtaining UI hierarchy
- How to Fix Python reading large local file memory error
- Python: SVN deletes files on local and remote repositories
- MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks
- [Solved] PyCharm Error: Cannot open Local Terminal Failed to start [powershell.exe] in C:\Users\…….
- [Solved] Python Error: local variable ‘var‘ referenced before assignment
- Python server run code ModuleNotFoundError Error [How to Solve]
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- [Solved] pyhive error: Could not start SASL: b’Error in sasl_client_start (-4) SASL(-4)
- [Solved] IDA Start Error: Unexcepted fatal error while intitailizing Python runtime…
- [Solved] RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)
- Chromdriver Install error: File “C:\python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start stdin=PIPE) File…
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- Python asynchronous co process crawler error: [aiohttp. Client]_ Exceptions: serverdisconnected error: Server Disconnected]
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- CMake Error at Could NOT find Python3 [Solved]
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- [Solved] Python Error: An attempt has been made to start a new process before the current process has finished …
- [How to Fix]RuntimeError: Python is not installed as a framework, If you are using (Ana)Conda