原因是 :5037端口被占用

1.解决方法:1.查找5037被谁占用   netstat -ano | findstr "5037"

adb devices 报错 * daemon not running. starting it now on port 5037 * ADB server didn

 

 我的被这个端口占用了

2.查看对应的是哪个任务  tasklist | findstr "6384"

adb devices 报错 * daemon not running. starting it now on port 5037 * ADB server didn

 

 这里不用管,直接到任务管理器(ctrl+alt+delete),找到adb.exe 进行停止该进程

adb devices 报错 * daemon not running. starting it now on port 5037 * ADB server didn

 

3.再次运行adb devices

adb devices 报错 * daemon not running. starting it now on port 5037 * ADB server didn