Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.02 KB

ANDROID.md

File metadata and controls

37 lines (31 loc) · 1.02 KB

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