Flutter插件未安装错误;当运行“扑医生"时 [英] Flutter plugin not installed error; When running 'flutter doctor'

查看:64
本文介绍了Flutter插件未安装错误;当运行“扑医生"时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux上配置Flutter SDK Ubuntu 16.04 (Xenial Xerus)系统.运行扑医生时为什么会出现以下错误?

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插件未安装错误;当运行“扑医生"时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆