首页 > 解决方案 > Flutter 插件未安装错误;运行“颤振医生”时

问题描述

我正在我的 Linux Ubuntu 16.04 (Xenial Xerus) 系统上配置 Flutter SDK。为什么我在运行颤振医生时会收到以下错误?

我已经在文件中指定了PATHSforflutterdartin .bashrc,但是运行时出现此错误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.

标签: flutterandroid-studiodartflutter-pluginflutter-doctor

解决方案


适用于 Mac (Android Studio 4.1+) 的安全修复。它现在位于不同的目录中,但符号链接有帮助。

只需在终端中运行此命令:

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

如果您有不同的 Android Studio 版本或安装文件夹,请相应地调整命令。


推荐阅读