python版本降低到3.6,成功解决问题。现在的配置是:
python3.6,uiautomator2:2.16.26(最新版,出现无法安装的情况试试换源),weditor:3.6.3(这个安装的时候也有问题,换源解决不了,因此指定了低版本安装)
按照其他博主的方法,删除cookie、重启、重新初始化环境都没有用,建议大家先试试其他博主的方法,实在不行就降python环境。
成功界面:
晚上又出现了一个新错误,出现在使用resourceid的时候:
Error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
解决方案是:打开模拟器中的ATX,点击停止UIAUTOMATOR