Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
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/
source ~/.zshrc
# adb
sudo apt-get install libc6:i386 libstdc++6:i386
# aapt
sudo apt-get install zlib1g:i386

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

Thanjs you!

*Thank you. Touch screen keyboards. Pfft.

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

thank u very much, it's work for me

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

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