> cd c:\dev\git\flutter
> flutter doctor
> flutter config --android-sdk c:\dev\android\sdk
> flutter doctor --android-licenses
> flutter doctor
Source: https://flutter.dev/docs/get-started/install/windows
> c:\dev\git\flutter
And updated the environment Path to include
c:\dev\git\flutter
And installed Android Studio, which will install the Android SDK.
c:\Users\[user]\AppData\Local\Android\sdk
But you may want a shorter and more accessible location such asc:\dev\android\sdk
Which is what causes Flutter to be flustered to not find the Android SDKYou should run flutter doctor, which validates your installation
> cd c:\dev\git\flutter
> flutter doctor
Well, the first error is Flutter cannot find the Android SDK.
If you installed the Android SDK into a custom location, such as
c:\dev\android\sdk
You will need to tell Flutter about its location,
which is not in the installation instructions.
> flutter config --android-sdk C:\dev\android\sdk
Source: https://github.com/flutter/flutter/issues/15114#issuecomment-431793370
> flutter doctor
I guess if you run a Flutter project or run the emulator you may get the license prompts then, but might as well accept them now.
> flutter doctor --android-licenses
Make sure you thoroughly read them, and dispute them if you do not agree, yup.
Running flutter doctor again yields> flutter doctor
So all good.
Flutter knows where the Android SDK is installed.
Note: While IntelliJ IDEA Ultimate Edition can also be used for Flutter and Android development, Android Studio is gracefully made by IntelliJ so the interfaces are similar, with Android Studio obviously being more targeted toward Android development. Also most tutorials, internet how/what searches will reference Android Studio.