Flutter Doctor:未安装Flutter和dart插件错误,但已安装插件(WINDOWS)

时间:2020-10-17 06:03:12

标签: android flutter dart

两个插件均已安装,但即使已安装,也无法访问android studio中的插件显示以下错误

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.18362.1082], locale en-IN)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.50.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

3 个答案:

答案 0 :(得分:0)

从Android Studio的设置中打开插件,搜索Flutter并安装它,它还将同时安装dart插件,然后重新启动Android Studio

答案 1 :(得分:0)

打开Android Studio->转到设置->转到插件,并检查Android Studio上是否安装了Dart和Flutter插件 enter image description here

答案 2 :(得分:0)

等待升级到Flutter 1.22.2

看到此问题:https://github.com/flutter/flutter/issues/67986

...以及Google网上论坛上的帖子

嗨,

Flutter 1.22.2已发布至稳定版本。这是1.22分支上的修补程序版本,并且还包含修补程序的Dart 2.10.2版本。此版本的更改在下面列出,并且可以在Flutter Wiki的以下位置找到:稳定频道的修补程序。

这可以解决以下问题:

https://github.com/flutter/flutter/issues/67869-手写笔轻击手势未正确注册。

https://github.com/flutter/flutter/issues/67986-不正确支持Android Studio 4.1。

https://github.com/flutter/flutter/issues/67213-混合构成的Web视图可能会导致崩溃。

https://github.com/flutter/flutter/issues/67345-某些页面的VoiceOver可访问性问题。

https://github.com/flutter/flutter/issues/66764-本机Web视图可能无法在混合结构中正确处理。

谢谢!

帕特里克,代表Flutter&Dart团队。