gpt4 book ai didi

Flutter 插件未安装错误;运行时 'flutter doctor'

转载 作者:IT老高 更新时间:2023-10-28 12:29:11 27 4
gpt4 key购买 nike

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

我在 .bashrc 文件中为 flutterdart 指定了 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com