flutter - Flutter 插件未安装错误;运行“颤振医生”时
问题描述
我正在我的 Linux Ubuntu 16.04 (Xenial Xerus) 系统上配置 Flutter SDK。为什么我在运行颤振医生时会收到以下错误?
我已经在文件中指定了PATHS
forflutter
和dart
in .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.
解决方案
适用于 Mac (Android Studio 4.1+) 的安全修复。它现在位于不同的目录中,但符号链接有帮助。
只需在终端中运行此命令:
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
如果您有不同的 Android Studio 版本或安装文件夹,请相应地调整命令。
推荐阅读
- jquery - 关闭引导程序 3 模态后滚动正文
- java - 如何在我的 Gluon Mobile 项目中更改 jdk?
- python - 使用子进程从 input() 交互式运行多个命令
- c# - 使用 XAML 样式的 WPF 3d 按钮样式
- java - Selenium Java 为 element.isDisplayed 返回不正确的结果
- android - 无法启动活动 ComponentInfo。java.lang.NullPointerException:Firestore 组件不存在
- laravel - 我的 laravel+Vuejs2 应用程序最好的服务器或云托管是什么?
- r - 在绘图矩阵中添加多个 R^2 值的简单方法
- c# - 防止普通用户卸载我的 Windows 服务
- php - 如何在 ERD 图中实现“可以”关系?