装不了uiautomator2,一直卡在那不动
来源:2-11 u2项目初始化

慕工程7365068
2021-10-04
写回答
2回答
-
慕勒5311868
2023-04-10
已解决,首先先让Ubuntu连接到手机上去,命令为:adb connect 手机的IP,注意此操作可以在虚拟机终端操作或者在SecureCRT连接工具上操作均可;然后,在终端输入uiautomator2 init即可,前面不要加python -m,这个是解决问题的关键。
00 -
大壮老师
2021-10-25
建议参考
123456# Since uiautomator2 is still under development, you have to add --pre to install the development version
pip install --upgrade --pre uiautomator2
# Or you can install directly from github source
git clone https://github.com/openatx/uiautomator2
pip install -e uiautomator2
或通过手动方式安装
1https://github.com/openatx/uiautomator2/wiki/Manual-Init
00
相似问题