I recently installed Flutter on my Chromebook (4 GB RAM). I have been writing snippets of dart code using vscode with no issues. Recently, I decided to move into the flutter framework, and then when I try to run the default application generated after creating a new project, VS Code freezes after a while. I know initially this was supposed to take a while to load being my first time, but is over 1 hour the appropriate time?
I have tried restarting VS Code several times, but still the same output. I even switched to using Android Studio, and this even crashes after a while.
What could be wrong or what am I getting wrong? I followed the official installation process on both VS Code and Flutter.dev sites.
2
Answers
i will assume that you have set up your emulator correctly and you opened the emulator with these steps:
1- on your keyboard use
ctrl + shift + p
and chooseFlutter: Select Device
and wait for the emulator to open.2- after the emulator starts, from the upper menu of VSCode select Run > Run without debugging.
the app should run, if the problem persists, in VSCode open a new terminal window and type :
1-
flutter upgrade
2-
flutter clean
3-
flutter pub get
try to run the application hopefully it will run
When it works only in terminal, you may have forgotten to select a device in vscode debug tasks menu that can cause complete system freeze.