Create a gist now

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.

Show comment
Hide comment
@iflowfor8hours

iflowfor8hours Dec 30, 2016

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

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

@dchrostowski

This comment has been minimized.

Show comment
Hide comment

Thanjs you!

@dchrostowski

This comment has been minimized.

Show comment
Hide comment
@dchrostowski

dchrostowski Dec 31, 2016

*Thank you. Touch screen keyboards. Pfft.

*Thank you. Touch screen keyboards. Pfft.

@jdthharrell

This comment has been minimized.

Show comment
Hide comment
@jdthharrell

jdthharrell 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

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.

Show comment
Hide comment
@ghostcodelover

ghostcodelover Jan 24, 2018

thank u very much, it's work for me

thank u very much, it's work for me

@Nottt

This comment has been minimized.

Show comment
Hide comment
@Nottt

Nottt Feb 7, 2018

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

apt-get install android-tools-adb

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

@hikkithegene

This comment has been minimized.

Show comment
Hide comment
@hikkithegene

hikkithegene Mar 6, 2018

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

hikkithegene 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.

Show comment
Hide comment

Thanks!

@tomasgallegos

This comment has been minimized.

Show comment
Hide comment
@tomasgallegos

tomasgallegos Mar 31, 2018

Thanks, the instructions are very good !!!

Thanks, the instructions are very good !!!

@ELIASDIASD

This comment has been minimized.

Show comment
Hide comment
@ELIASDIASD

ELIASDIASD May 23, 2018

YES! Tank you

YES! Tank you

@malikkurosaki

This comment has been minimized.

Show comment
Hide comment
@malikkurosaki

malikkurosaki Jul 21, 2018

ok thank .. for an error pear use

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

for fix get an pear error

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