还未发布过话题
  • 引用

    uiautomator2 部分
    刚开始用 pip install --pre uiautomator2 安装的是 uiautomator2 v0.2.0 版本。
    还是执行 python -m uiautomator2 init 。报的错更离奇,说 adbutils 里的 Adb 类不存在,w t f !
    这下是真懵了,找大佬把他本地的 adbutils.py 拷给我 Adb 类就是正常的。

    解决方案:安装 uiautormator2 时指定 0.1.9 版本,不会有这个问题。

    推测原因:去 github 上看了下,v0.2.0 把原来 adbutils 里的 Adb 类改了 (包括名字),

    但 main.py 里 Installer 类还是继承的 adbutils.Adb,估计是作者发版本太匆忙修改有遗漏吧。

    问题:
    我现在是 python3.6 , init 时报错:
    class Installer(adbutils.Adb):
    AttributeError: module 'adbutils' has no attribute 'Adb' ,
    请问怎么处理

  • ATX 录放编辑器 -- WEditor at 2018年10月19日

    pc 命令行里再执行一次:python -m uiautomator2 init
    https://shop150751655.m.taobao.com