Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aryeharmon/85673d69b07c5b7061c38ac4323f409c to your computer and use it in GitHub Desktop.
Save aryeharmon/85673d69b07c5b7061c38ac4323f409c to your computer and use it in GitHub Desktop.
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
# 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
@iflowfor8hours
Copy link

Just wanted to say thanks, this works well for me.

@dchrostowski
Copy link

Thanjs you!

@dchrostowski
Copy link

*Thank you. Touch screen keyboards. Pfft.

@jdthharrell
Copy link

Now I am stuck at step or line 3 any help LOOOK:

nonymous@anonymous-Aspire-E5-571:~$ sudo apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openjdk-7-jre' has no installation candidate

@ghostcodelover
Copy link

thank u very much, it's work for me

@Nottt
Copy link

Nottt commented Feb 7, 2018

However lands here from google like me, you can do this on ubuntu 16.04

apt-get install android-tools-adb

@doble-d
Copy link

doble-d commented Mar 6, 2018

@jdthharrell 'openjdk-7-jre' is no longer in the repositories.. instead change the 7 for 'openjdk-8-jre'

@Sammyalhashe
Copy link

Thanks!

@tomasgallegos
Copy link

Thanks, the instructions are very good !!!

@ELIASDIASD
Copy link

YES! Tank you

@malikkurosaki
Copy link

ok thank .. for an error pear use

./android update sdk --no-ui --no-https

for fix get an pear error

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