-
Notifications
You must be signed in to change notification settings - Fork 2
MobileClientSetupGuide
Koukobin edited this page May 13, 2025
·
14 revisions
Setting up flutter and - to be more precise - the Android SDK and an Android Emulator is a pain the ass. Hence/Consequently, I decided to compose a simple setup guide for Flutter, including the Android SDK and an Android Emulator, to make setup more practical.
git clone https://github.com/Koukobin/Ermis.gitsudo apt update
sudo apt upgrade
sudo apt-get update -y && sudo apt-get upgrade -y;
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
sudo apt-get install libc6:amd64 libstdc++6:amd64 lib32z1 libbz2-1.0:amd64
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.0-stable.tar.xz
tar xf flutter_linux_3.27.0-stable.tar.xz
nano ~/.bashrc
export PATH="$PATH:$HOME/flutter/bin"
source ~/.bashrc
sudo chown -R $(whoami):$(whoami) /opt/flutter
flutter --version
flutter doctor
sudo apt install clang
sudo apt install ninja-build
Download Android SDK Command-Line Tools
You can download the latest version of the Android SDK Command-Line Tools from the official Android Developer website:
- Go to Android SDK Downloads (https://developer.android.com/studio).
- Scroll down to the "Command line tools only" section and download the appropriate version for Linux.
mkdir -p ~/Android/Sdk/cmdline-tools
mv ~/Downloads/commandlinetools-linux-11076708_latest.zip Android/Sdk/cmdline-tools/
nano ~/.bashrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
source ~/.bashrc
Hover to `~Android/Sdk/cmdline-tools/` and extract the zip file
cd $ANDROID_HOME/cmdline-tools/latest/bin
Create folder `latest`
mkdir latest
mv `whatever-name-it-is`
cd latest/
unzip `whatever-name-it-is`sdkmanager "emulator"
sdkmanager "platform-tools"
sdkmanager "tools"
sdkmanager "platforms;android-33"
sdkmanager "system-images;android-33;google_apis;x86_64"
avdmanager create avd -n MyEmulator -k "system-images;android-33;google_apis;x86_64" --device "pixel"
emulator -avd MyEmulator
— Giving you the freedom to communicate on your own terms —
"Arguing that you don’t care about the right to privacy because you have nothing to hide is no different than saying you don’t care about free speech because you have nothing to say"
— Dr. Edward Snowden