Created
October 12, 2015 18:53
-
-
Save gblnovaes/a88fa3227ec80ed0c4a2 to your computer and use it in GitHub Desktop.
Adcionando android na linha de comando
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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