Android studio 是否有必要为颤振安装Android Studio,或者可以用什么替代Android Studio?

Android studio 是否有必要为颤振安装Android Studio,或者可以用什么替代Android Studio?,android-studio,flutter,dart,visual-studio-code,mobile-application,Android Studio,Flutter,Dart,Visual Studio Code,Mobile Application,我正在使用vscode,我安装了颤振插件、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] Andro

我正在使用vscode,我安装了颤振插件、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 SDK才能开发Android应用程序。如果你不想安装Android Studio,那么你必须使用命令行工具


如果您习惯使用命令行,那么您可以这样做

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


希望这个答案有帮助

首先问题,您可以在
flatter doctor
日志中看到
x
标记:

[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 SDK或者你还没有为Android SDK设置路径

第二期

! No devices available
这意味着您尚未安装设备驱动程序或操作系统无法识别设备

最后一次

是否有必要为颤振安装Android Studio,或者可以用什么替代Android Studio


没有必要安装Android Studio。但我认为您需要使用IntelliJ或Android studio而不是VS代码。这是因为InteliJ或Android Studio作为一个成熟的IDE比VS代码(它只是一个编辑器)具有更大的功能。

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


你可以参考这篇媒体文章:

是的,我下载了android studio,然后我正在编写VScode,谢谢你的帮助。这似乎与我在和中找到的内容相符,尽管发布日期和发布日期都是2017年。2019年中期的答复也证实了这一点。