Android toolchain - develop for Android devices X cmdline-tools component is missing
If you still see the same error even after your build tools,
tools are installed and added to the user/system path variable,
and maybe your sdkmanager location is really not found.
Just type in
flutter config --android-sdk "C:UsersbarmaAppDataLocalAndroidSdk"
(since my SDK folder is here)
Then you may need to restart any open editors for them to read new settings.