Skip to content

Instantly share code, notes, and snippets.

Embed
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
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

This comment has been minimized.

Copy link

iflowfor8hours commented Dec 30, 2016

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

@dchrostowski

This comment has been minimized.

Copy link

dchrostowski commented Dec 31, 2016

Thanjs you!

@dchrostowski

This comment has been minimized.

Copy link

dchrostowski commented Dec 31, 2016

*Thank you. Touch screen keyboards. Pfft.

@jdthharrell

This comment has been minimized.

Copy link

jdthharrell commented Jan 27, 2017

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

This comment has been minimized.

Copy link

ghostcodelover commented Jan 24, 2018

thank u very much, it's work for me

@Nottt

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

Sammyalhashe commented Mar 18, 2018

Thanks!

@tomasgallegos

This comment has been minimized.

Copy link

tomasgallegos commented Mar 31, 2018

Thanks, the instructions are very good !!!

@ELIASDIASD

This comment has been minimized.

Copy link

ELIASDIASD commented May 23, 2018

YES! Tank you

@malikkurosaki

This comment has been minimized.

Copy link

malikkurosaki commented Jul 21, 2018

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
You can’t perform that action at this time.