No connected devices found; please connect a device, or see flutter.dev/setup for getting started instructions
这个问题困扰我两天的时间,之前的老项目也是一样的
网上的方案几乎全部都试了一遍,在我这里都是没有效果的,就差重装AS了。当然也可以按照下面的方案试试,毕竟有小伙伴是可以解决他的问题。
- https://blog.csdn.net/qq_35605213/article/details/93891176
- https://juejin.cn/post/6844903751606599688
- https://blog.csdn.net/iamlujingtao/article/details/112188671
flutter的环境配置都是正常的,没有问题的,flutter doctor
检测出设备是有识别的,就是不知道问题出哪里。
最后在技术群里网友的提示下,尝试升级adb或重装AS,在官网下载最新adb
当前adb版本是1.0.31,官网最新是1.0.40
https://developer.android.com/studio/releases/platform-tools?hl=zh-cn
abd升级安装教程:
https://blog.csdn.net/qq_40363971/article/details/102621123
然后配置配置adb path环境变量
最后就是重启电脑,总算迈过了这个flutter的坑了。