未安装Flutter插件

时间:2020-11-11 07:26:26

标签: android android-studio flutter flutter-dependencies mobile-development

我已经在 Android Studio 上安装了flutter和 Dart 插件,但是当我运行 flutter Doctor时,表明没有安装插件< / p>

Doctor summary (to see all details, run flutter doctor -v):
[√]
 Flutter (Channel stable, 1.22.3, on Microsoft Windows [Version 10.0.18363.1139], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.46.1)
[√] VS Code, 64-bit edition (version 1.51.0)
[√] Connected device (1 available)

! Doctor found issues in 1 category.

2 个答案:

答案 0 :(得分:0)

  • 启动Android Studio应用程序
  • 打开插件首选项(macOS上的“首选项”> Plugins,Windows和Linux上的“文件”>“设置”>“ Plugins”)。
  • 选择“浏览存储库...”,选择Flutter插件,然后单击“安装”。
  • 在提示您安装Dart插件时,单击“是”。
  • 在提示时单击重新启动。

答案 1 :(得分:0)

我有同样的问题检查:https://github.com/flutter/flutter-intellij/issues/4523

如果您使用的是Mac:ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

对于Windows和/或Linux,您可以尝试Flutter Dev频道:

flutter channel beta
flutter upgrade