profile for Gajendra D Ambi on Stack Exchange, a network of free, community-driven Q&A sites

Wednesday, July 16, 2025

Setting up flutter for android on windows is BS

 So all these mega tech corpos cant make an installer or their employees only do what they are told/asked and they dont give a damn about these things.

I was trying to setup android development on windows with my VSC, hey don't judge me, I dont want to use the inbuilt IDE of android, I wanna stick to what I know, whom I know and that is VSC; so here are the pointers

  1. Do not use WSL on VSC, it won't work or don't know anyone who has made it work
  2. Open a new workspace on windows local machine (not WSL)
  3. Install dart and flutter extensions
  4. Download and install android studio
  5. Add the ANDROID_HOME environment variable (system & user) to C:\Users\username\AppData\Local\Android\Sdk verify the same by running `echo %ANDROID_HOME%` in command shell (not powershell)
  6. Add the following paths to windows PATH
    C:\Users\username\AppData\Local\Android\Sdk\platform-tools C:\Users\username\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
  7. Use cmd shell, not powershell terminal in the VSC. If step 5 is done well, this is not needed but still works as a backup step. point sdk to the flutter by doing flutter config --android-sdk C:\Users\username\AppData\Local\Android\Sdk
  8. Download the commandline tools separately and ensure they are placed like this
    C:\Users\username\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat
  9. Install visual studio community edition with Desktop development with C++
  10. Now run 'flutter doctor' in VSC cmdline terminal and you should be good to go. Powershell might still work but not always, at least in my case.

No comments:

Post a Comment