Skip to content

Instantly share code, notes, and snippets.

@gblnovaes
Created October 12, 2015 18:53
Show Gist options
  • Save gblnovaes/a88fa3227ec80ed0c4a2 to your computer and use it in GitHub Desktop.
Save gblnovaes/a88fa3227ec80ed0c4a2 to your computer and use it in GitHub Desktop.
Adcionando android na linha de comando
Android manager has a graphical interface. Not sure using terminal only for such development is a good idea.
Anyways, run with -u (no UI) option :
android update sdk -u
Accept licenses (y) and install whatever is needed.
Add android tools to $PATH:
Lets say sdk directory is /home/user/sdk then:
edit user's bash profile:
nano ~/.bashrc
Add following to it:
export ANDROID_HOME=/home/user/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/build-tools
and save (CTRL+O and then CTRL+X)
Logout and login again, run from terminal:
echo $PATH
to verify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment