Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
./android update sdk --no-ui
# set path
vi ~/.zshrc << EOT
export PATH=${PATH}:$HOME/sdk/android-sdk-linux/platform-tools:$HOME/sdk/android-sdk-linux/tools:$HOME/sdk/android-sdk-linux/build-tools/22.0.1/
EOT
source ~/.zshrc
# adb
sudo apt-get install libc6:i386 libstdc++6:i386
# aapt
sudo apt-get install zlib1g:i386
@mukana-lahtelat
Copy link

mukana-lahtelat commented Jul 21, 2017

Do notice that this script assumes you're using ZSH, not bash. Replace .zshrc with .bashrc to fix

@vshantam
Copy link

vshantam commented Jul 28, 2017

amazing.saved my day.thanks a lot

@Jullies
Copy link

Jullies commented Oct 3, 2017

Thank You

@canhphong
Copy link

canhphong commented Dec 9, 2017

thanks

@alejandrohn
Copy link

alejandrohn commented Jan 4, 2018

Thanks

@welcomepkw
Copy link

welcomepkw commented Apr 27, 2018

thanks bro!

@M97Chahboun
Copy link

M97Chahboun commented Jan 30, 2021

Thank you !

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