Ubuntu android-sdk and andoid emulator

I spent many hours looking for the right solutions so I’ll write a manual

Ubuntu android sdk install

wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip

mkdir -p Android/Sdk

export ANDROID_HOME=$HOME/Android/Sdk

export PATH=“$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH”

sdkmanager --sdk_root=${ANDROID_HOME} “tools”

sdkmanager --update

sdkmanager --list

sdkmanager “build-tools;28.0.3” “platform-tools” “platforms;android-28” “tools”

sdkmanager --licenses

Open jmonkey project folder and add to local.properties path to sdk

now we need run emulator

cd ~/Android/Sdk/tools

sdkmanager --install “system-images;android-23;google_apis;x86”

sdkmanager --channel=3 emulator

avdmanager create avd -n test -k “system-images;android-23;google_apis;x86”

./emulator -avd test

1 Like