我使用的是vscode,我安装了Flutter 翼插件、DART插件等,但是我仍然找不到我的设备,因为我发现问题如下

[flutter] flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows 
[Version 10.0.18362.239], locale en-IN)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: 
https://developer.android.com/studio/index.html
  On first launch it will assist you in installing the Android SDK components.
  (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
  If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
  You may also want to add it to your PATH environment variable.

[!] Android Studio (not installed)
[√] VS Code (version 1.36.1)
[!] Connected device
! No devices available

! Doctor found issues in 3 categories.

推荐答案

您需要安装Android Studio才能获得Android SDK.使用Android Studio获取Android SDK后,可以继续使用VScode进行Flutter 开发.

希望这个答案能有所帮助!

Dart相关问答推荐

如何获取包含在 Dart 包中的assets资源 的文件路径?

VS Code 无法识别 Flutter 中的单元测试

MappedListIterable 不是子类型

从 PopupMenuItem 中删除填充(overflow menu)

如何在仍然引用来自 pub.dartlang.org 的包的同时运行私有 pub 服务器?

Flutter Drawer Widget - 更改 Scaffold.body 内容

无法导入 dart 的 intl 包

如何在 flutter 中对json进行字符串化

为什么 Dart 有编译时常量?

Dart:实例变量在私有类中应该是私有的还是公共的?

将函数/方法分配给 Dart 中的变量

有可用的 Dart VM 吗?

Flutter/Dart:按第一次出现拆分字符串

Dart如何将逗号添加到字符串编号

如何从 Dart 中的字符串中删除换行符?

如何在 Dart SDK 0.4+ 中使用 setInterval/setTimeout

Dart 中使用的包命名约定是什么?

Dart - 如何对 Map 的键进行排序

在 Dart 中克​​隆list列表、map或set集合

如何在 Dart 中将 double 转换为 int?