我正在我的 Linux 上配置 Flutter SDK Ubuntu 16.04 (Xenial Xerus) 系统。为什么我在运行 flutter 医生时会出现以下错误?
我在 .bashrc
文件中为 flutter
和 dart
指定了 PATHS
,但我明白了运行 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.
最佳答案
Mac (Android Studio 4.1+) 的安全修复。它现在位于不同的目录中,但符号链接(symbolic link)有帮助。
只需在终端中运行此命令:
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
如果您有不同的 Android Studio 版本或安装文件夹,请相应调整命令。
关于Flutter 插件未安装错误;运行时 'flutter doctor',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51860845/