flutter config --android-sdk <path-to-your-android-sdk-path>
flutter doctor --android-licenses
flutter doctor -v
where dart
Open Android Studio
Tools Menu, SDK Manager
In the window that comes up there are inner panels, choose SDK Tools panel
Tick Android SDK Command-line Tools
Choose Apply button near the bottom of the window