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
- Do not use WSL on VSC, it won't work or don't know anyone who has made it work
- Open a new workspace on windows local machine (not WSL)
- Install dart and flutter extensions
- Download and install android studio
- 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)
- 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 - 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
- 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 - Install visual studio community edition with Desktop development with C++
- 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.