问题描述
我正在 Linux Ubuntu 16.04 (Xenial Xerus) 系统.为什么我在运行 flutter doctor 时会出现以下错误?
I am configuring the Flutter SDK on my Linux Ubuntu 16.04 (Xenial Xerus) system. Why am I getting the following error when I run the flutter doctor?
我已经在 .bashrc
文件中为 flutter
和 dart
指定了 PATHS
,但我得到了这个运行 flutter doctor
时出错:
I have specified both PATHS
for flutter
and dart
in the .bashrc
file, but I get this error when I run 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+) 的安全修复.它现在位于不同的目录中,但符号链接有帮助.
Safe fix for Mac (Android Studio 4.1+). It is in a different directory now, but the symbolic link helps.
只需在终端中运行此命令:
Just run this command in the Terminal:
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
如果您有不同的 Android Studio 版本或安装文件夹,请相应地调整命令.
If you have a different Android Studio version or an installation folder, adjust the command accordingly.
这篇关于Flutter 插件未安装错误;运行“颤振医生"时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!