2020-08-06 android studio 可以执行ad
2020-08-06 本文已影响0人
fjasmin
20200722 进入了一家新公司,公司配置一台新的Dell的台式机。一切都很好。不过发现做开发的时候android studio 和 Termina adb 在进入adb模式时候,只有android studio adb是可以使用。而Termina adb是识别不了adb devices。
系统:win10 Termina cmd
内容如下:
C:\Users\chen>adb devices
adb server is out of date. kil
* daemon started successfully *
List of devices attached
0123456789ABCDEF offline

android studio:
D:\android\sdk\platform-tools>adb devices
List of devices attached
0123456789ABCDEF device

而且最棘手的问题是,在android studio中输入adb 连接正常。如果在Terimina 中 输入adb命令。会导致android studio adb 自动断开
显示:
D:\android\sdk\platform-tools>adb devices
adb server version (26) doesn't match this client (41); killing...
could not read ok from ADB Server
* failed to start daemon
adb.exe: failed to check server version: cannot connect to daemon
这个问题试过很多方法。
- 查看占用5037 端口
- 更改 环境变量
- adb 服务重启
统统都没用,先记录。