是否有必要安装 Android Studio for flutter 或者什么可以替代 android studio?

Har*_*iya 10 mobile-application dart android-studio visual-studio-code flutter

我正在使用 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.
Run Code Online (Sandbox Code Playgroud)

小智 13

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

希望这个回答有帮助!


F-1*_*F-1 9

您将需要 Android SDK 才能开发 Android 应用程序。如果你不想安装Android Studio,那么你必须使用命令行工具。https://developer.android.com/studio#downloads

如果您习惯使用命令行,那么您可以这样做。https://developer.android.com/studio/command-line


小智 6

您并不特别需要 Android Studio,您只需要 Android SDK,下载它并将环境变量设置为 SDK 路径,以便 flutter 安装识别它。

您可以参考这篇中等文章:https://medium.com/@sadabwasim/flutter-in-linux-37d32890745b