Reputation: 479
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
Upvotes: 1
Views: 307
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
Reputation: 479
It worked after reinstalling all my extensions, primarily dart and flutter a couple of times. Thank you @amsakanna
Upvotes: 0