[英]Unable to locate a development device; please run 'flutter doctor' for information about installing additional components. on VS Code
Getting error while installing in the new laptop (Windows 10) in vs code在 vs 代码中安装新笔记本电脑 (Windows 10) 时出错
✓ Java SDK ✓ Java SDK
✓ Android SDK ✓ Android SDK
✓ Flutter SDK ✓ Flutter SDK
✓ ADB Driver ✓ 亚行驱动程序
✓ Set Env Path for all SDK ✓ 为所有 SDK 设置环境路径
✓ run flutter config --android-sdk <path>
✓ 运行
flutter config --android-sdk <path>
after that it's showing my device but when I am trying to run flutter run
之后它显示我的设备但是当我尝试运行
flutter run
It's showing no device found.它显示找不到设备。 I searched for other solutions but didn't help me.
我搜索了其他解决方案,但没有帮助我。
Solved解决了
Install Android API Level 29 from Android SDK Manager.从 Android SDK Manager 安装 Android API Level 29。 Then install Android Licenses from Android SDK Manager.
然后从 Android SDK Manager 安装 Android Licenses。 Then run
flutter doctor -v
for checking proper installation.然后运行
flutter doctor -v
检查安装是否正确。
Another solution which I have found.我找到的另一个解决方案。 Many devs are trying to install android studio first then download all the SDK after that uninstall the android studio.
许多开发人员尝试先安装 android 工作室,然后下载所有 SDK,然后卸载 android 工作室。
I hope you will get your proper solution from here.我希望你能从这里得到合适的解决方案。
github issue solved github 问题已解决
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.