Check out example codes for "unable to locate android sdk flutter in windows". It will help you in understanding the concepts better.

Code Example 1

Flutter provides a command to update the Android SDK path:

Use flutter config --android-sdk <path-to-your-android-sdk-path>

Learn ReactJs, React Native from akashmittal.com