更新后的Android Studio Flutter错误

问题描述

昨天我从命令行更新了Flutter。然后也飞镖(提示我)。之后,我所有包含String的类都出现了错误(String不是一种类型-当然,我确实导入了dart-core,但什么也没发生)。

enter image description here

Flutter医生给出了这个错误

enter image description here

事件,尽管它们似乎已安装

enter image description here

我看过以下内容,但没有帮助

https://github.com/flutter/flutter/issues/28995

Flutter plugin not installed error;. When running flutter doctor

Android Studio flutter and dart plugins not recognized by flutter doctor,but plugins are installed

我正在使用稳定的Android Studio 4.1频道。我已经尝试了在这里找到的所有内容Flutter pub get,upgrade,clean等,Android Studio的无效缓存,但还是一样。我可以从命令行工作,但这不是解决方案。

有什么想法吗? 非常感谢!

解决方法

尝试一下,

进入设置 并检查您的Dart SDK路径。 enter image description here

设置后或检查您的路径。 如果它是错误的。设置正确的路径,然后 为您的项目启用dart支持模块。 单击此按钮后。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...