Forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Last active
January 28, 2016 22:17
-
-
Save coliver/b46c8f8e8df9f0bcbc57 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 command line install android sdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
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 ~/.bashrc << EOT | |
export PATH=${PATH}:$HOME/android-sdk-linux/platform-tools:$HOME/android-sdk-linux/tools:$HOME/android-sdk-linux/build-tools/22.0.1/ | |
EOT | |
source ~/.bashrc | |
# adb | |
sudo apt-get install libc6:i386 libstdc++6:i386 | |
# aapt | |
sudo apt-get install zlib1g:i386 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment