D:\SDK\tools\bin
uiautomatorviewer.bat
这个用起来更加方便。
1.x版本的Appium Inspector需要设置下面地址。
adb uninstall io.appium.uiautomator2.server.test
This means your UI Automator is got disconnected, to regain the connection, you can open the new terminal no need to worry about the location on the terminal.
Type the command
adb reconnect
and try again to take a screenshot it should work.
如果还是不可以:
尝试关闭appnium和两个ui的自启动权限。
C:\Users\liyd\AppData\Local\Programs\Python\Python39\Scripts
pip install selenium --trusted-host mirrors.aliyun.com
删除appium生产的UI app,然后生产appium对应的UI app,并设置后台启动,不限制启动。