skip to Main Content

I recently installed Flutter on my Chromebook (4 GB RAMenter image description here). 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.

Image showing the terminal after running the "flutter run" command

2

Answers


  1. 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 choose Flutter: 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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search