自动化工具 adb 一直连不上 Genymotion 是什么情况?

Redbuffhu · 2019年12月27日 · 最后由 Redbuffhu 回复于 2019年12月28日 · 1420 次阅读

如题,win10 的电脑,软件环境配置没问题,连真机或者雷电模拟器是可以的,但是连接 Genymotion 的虚拟机一直连不上去,怎么办?
已尝试如下解决方法:

  1. 修改 Genymotion setting 的 adb 路径,adb devices 未显示连接
  2. 启动 Genymotion android 运行后,点击 Genymotion shell devices list ,adb connect 当前 ip:port adb devices 未显示连接
共收到 1 条回复 时间 点赞

经排查,系统默认启动了另一个 adb;
解决办法:用 everything 搜索出除自己配置 sdk 的 adb 外,禁用掉系统默认启动的那个,题主搜索后发现除了我指定位置有 adb.exe,还有四个文件夹下也有 adb.exe,禁用就行。
回终端,adb.devices 出现连接 id,问题解决。

Redbuffhu 关闭了讨论 12月28日 16:04
Redbuffhu 重新开启了讨论 12月28日 16:04
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册