我正在我的Linux Ubuntu 16.04 (Xenial Xerus)系统上配置Flutter SDK。为什么在运行颤振诊断程序时出现以下错误?

我已经在.bashrc文件中为flutter和dart指定了path,但是当我运行flutter doctor时,我得到了这个错误:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
[✓] Android Studio (version 3.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Community Edition (version 2018.2)
[!] VS Code (version 1.25.1)
[!] Connected devices
    ! No devices available

! Doctor found issues in 2 categories.

当前回答

最终我解决了这个问题,运行下面的命令。 我使用的是安卓4.2,操作系统是Mac

ln -s ~/Library/Application\ Support/谷歌/AndroidStudio4.2/plugins ~ /图书馆/应用程序/ AndroidStudio4.2 \支持

其他回答

当我拥有多个版本的Android Studio时,我就遇到了这个问题,但它看起来并没有多个版本。但你确实使用IntelliJ IDEA社区版,所以你确定你在Android Studio中安装了插件吗?

我在更新Android Studio后遇到了类似的错误,原来我需要更新现有的Flutter插件。

要修复它,请到Android Studio→首选项→插件→已安装→更新已安装的Flutter插件。

根据下图,先安装所需的Flutter和Dart插件,然后从官方- Flutter - SDK -download-page下载Flutter SDK后,添加Flutter和Dart路径:

我的机器上安装了IntelliJ IDEA和Android Studio。我删除了IntelliJ IDEA,因为我已经在Android Studio中安装了Dart和Flutter插件。那么颤振医生指令就能完美运行。

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
[✓] Android Studio (version 3.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected devices
    ! No devices available

一个对我有效的解决方案:

只需要安装插件。 Android Studio→菜单文件→设置→插件→浏览存储库 搜索“颤振”。 点击安装(会弹出一个关于Dart依赖的对话框。单击Yes)。 安装完成后,重新启动Android Studio。

现在跑扑医生:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
[✓] Android Studio (version 3.1)
[!] Connected devices
    ! No devices available

androidflutterdartflutter-doctor