python -m uiautomator2 init 一直报错
来源:3-2 u2自动化工具基本操作-操作app

fiter
2022-06-07
连的的真机 ,还是Google原生机器
写回答
2回答
-
慕勒5311868
2023-04-10
已解决,首先先让Ubuntu连接到手机上去,命令为:adb connect 手机的IP,注意此操作可以在虚拟机终端操作或者在SecureCRT连接工具上操作均可;然后,在终端输入uiautomator2 init即可,前面不要加python -m,这个是解决问题的关键。
00 -
大壮老师
2022-07-21
如果init失败建议进行手动安装
https://github.com/openatx/uiautomator2/wiki/Manual-Init
00
相似问题