After installing flutter you'll need to install ANDROID SDK.
Make directory called android
.
Download and put them into android/cmdline-tools/latest
So that android/cmdline-tools/latest/bin
will contain sdkmanager
and other tools.
Now set some environment variables:
set PATH $PATH /snap/bin # if flutter was installed using snap
set ANDROID_HOME /home/orsenkucher/android
set ANDROID_SDK_ROOT /home/orsenkucher/android/cmdline-tools/latest
set PATH $PATH $ANDROID_HOME $ANDROID_SDK_ROOT $ANDROID_SDK_ROOT/bin
Install SDK
sdkmanager "system-images;android-27;default;x86_64"
sdkmanager "platform-tools"
sdkmanager "build-tools;28.0.3" # at least version 28 needed
sdkmanager "platforms;android-28" # at least version 28 needed
sdkmanager emulator # if you want emulator
Accept licenses
sdkmanager --licenses
Configure flutter
flutter config --android-sdk path/to/android
Moment of truth
flutter doctor -v