Pannam T
Pannam T

Reputation: 479

Flutter doesn't compile project after restart

My computer restarted for no reason and now all settings in flutter running in vs code have changed. During restart, I got an option to verify the author or something. I believe to hit trust but after that, I can't compile my project anymore plus the default behavior of the mouse buttons has changed. Right-click now shows, change all occurrences instead of default options. My phone is connected but it doesn't show up in the emulator/phone section below. The same project runs fine in android studio

Flutter Issue Flutter Extensions

Upvotes: 1

Views: 307

Answers (2)

Md. Yeasin Sheikh
Md. Yeasin Sheikh

Reputation: 63594

1st run flutter doctor to check if there any problem with install. try to clean the project using flutter clean and rebuil/ run again.

Also you can run from terminal, you can just type on terminal flutter run and it show devices then select one.

For emulators type flutter emulators , it will show your emulators, to run on emulators flutter emulators --launch deviceName.

here the short form.

  • flutter clean
  • flutter pub get
  • flutter run

Upvotes: 1

Pannam T
Pannam T

Reputation: 479

It worked after reinstalling all my extensions, primarily dart and flutter a couple of times. Thank you @amsakanna

Upvotes: 0

Related Questions