装不了uiautomator2,一直卡在那不动

来源:2-11 u2项目初始化

慕工程7365068

2021-10-04

写回答

2回答

慕勒5311868

2023-04-10

已解决,首先先让Ubuntu连接到手机上去,命令为:adb connect 手机的IP,注意此操作可以在虚拟机终端操作或者在SecureCRT连接工具上操作均可;然后,在终端输入uiautomator2 init即可,前面不要加python -m,这个是解决问题的关键。

0
0

大壮老师

2021-10-25

建议参考

1
2
3
4
5
6
# 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

或通过手动方式安装

1
https://github.com/openatx/uiautomator2/wiki/Manual-Init



0
0

移动端Python爬虫实战 数据抓取+数据可视化

从App数据抓取到数据可视化,全流程讲解

1836 学习 · 1005 问题

查看课程