Skip to content

Instantly share code, notes, and snippets.

@EmadAdly
Last active November 18, 2024 07:56
Show Gist options
  • Save EmadAdly/dfd18bf1ed7380fb9754ef798d23ec3b to your computer and use it in GitHub Desktop.
Save EmadAdly/dfd18bf1ed7380fb9754ef798d23ec3b to your computer and use it in GitHub Desktop.
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk

download android sdk

wget https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
unzip tools_r25.2.3-linux.zip -d sdk
cd /sdk/tools

install all sdk packages

./android update sdk --no-ui

set path

export ANDROID_HOME=$HOME/sdk
export PATH=${PATH}:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/build-tools/26.0.0-preview/

adb

sudo apt-get install libc6:i386 libstdc++6:i386

aapt

sudo apt-get install zlib1g:i386

Open Android SDK Manager to check installation

android
@hasunpark
Copy link

Thanks for good instruction.
I think cd /sdk/tools this part should update as cd ./sdk/tools i think you miss a dot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment