skip to Main Content

I want to run my window application in flutter using android studio but I face this error
Launching libmain.dart on Windows in debug mode…
Exception: Unable to find suitable Visual Studio toolchain. Please run flutter doctor for more details.

I am unable run this I try a lot of things

2

Answers


  1. Visual Studio 2022 to debug and compile native C++ Windows code. Make
    sure to install the Desktop development with C++ workload. This
    enables building Windows app including all of its default components.
    Visual Studio is an IDE separate from Visual Studio Code.

    To facilitate the development of Flutter applications on Windows, it is essential to set up Visual Studio 2022 for debugging and compiling native C++ Windows code. Ensure the installation of the Desktop development with C++ workload, as this encompasses the essential components for building Windows applications.

    Install Visual Studio from here and tick the checkbox for the Desktop development with C++ workload during installation.

    See the docs for more info on how to get started.

    Login or Signup to reply.
  2. If you run flutter doctor you will get a recommendation to install Visual Studio. This is necessary for the development of Windows. You can follow this link for more information

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