alibaba / web-editor

please use https://uiauto.dev instead
https://uiauto.dev
MIT License
1.23k stars 303 forks source link

adbutils.errors.AdbError: device not found #57

Closed PikChan closed 5 years ago

PikChan commented 5 years ago

通过weidtor连接,首次能够连接成功,但退出后第二天再启动连接,则提示该错误。 image

但单独通过uiautomator2可以成功连接,并且成功截图 image

image

本人尝试过卸载weditor重装,网上查过多次,资料稀少,成功解决过一次,但不知道是哪些操作解决的。第二天又是老问题。

查阅过的资料:

  1. https://www.cnblogs.com/dtting/p/6541392.html
  2. https://gitee.com/tp7309/TTEmulatorPortFinder/repository/archive/master.zip

环境: 雷电模拟器 win10 64位 Python3.7.4 image image

PikChan commented 5 years ago

今天终于找到问题所在了,要清除Chrome中该网站上次打开后产生的cookie。

之前也想到过可能是该原因,但是不知道单独清除某个网站下cookie的方法,又不想清理所有网站,遂作罢。

之后又转念以为缓存数据可能在本地weditor文件夹下的某个文件中。但实际上,我找过,并没有找到,而且多次卸载(remove所有相关文件)重装weditor后,仍然不行。

清除cookie后,再connect,成功连接!😄 image

image

codeskyblue commented 5 years ago

weditor的缓存数据是保存在 Chrome的LocalStorage中