Flutter - Dart failing after Android Studio and Flutter update
Running:
Flutter clean
and then
Flutter run --debug
Worked for me.
Find dart:html
in your project and remove it.
Then run flutter clean
.
In my case, for some unknown reason, at some point my IDE (VSCode) created that import in one of my files, without me noticing.
EDIT: to get rid from this issue switch back to stable channel by running this command in the terminal.
flutter channel stable
run flutter upgrade
after this.
Please check detailed error by this command
flutter run --debug
Point to remember: if its not a web project then Find and remove dart:html
.
dart:html library is for web apps only (it wraps the DOM APIs) and it is not supposed run in Flutter. Please check this git issue