0
Can I have steps to install the same OR set $ANDROID_HOME?

Solved 1 Answers 36 Views Others
0 1
Can I have steps to install the same OR set $ANDROID_HOME?
related to an answer for: how do i download android sdks for Mac?

1 Answer

0
Best answer
0
  1. On terminal app execute below commands step by step:

cd
touch  .bash_profile

open -a  “TextEdit” .bash_profile

This will open the .bash_profile file  with exsisting values we set for Java_Home and PATH

  1. Append the file with below command

export ANDROID_HOME=<path of sdk in above step>

Example: export ANDROID_HOME=/Users/<UserName>/Documents/ andriod-sdk-macosx

  1. Append the $PATH variable as below (red color already exists, blue color need to be appended)

export PATH=$PATH:/Users/***/Documents/android-sdk-macosx/tools:/Users/***/Documents/android-sdk-macosx/platform-tools

Your .bash_profile file  should look as shown in screenshot below.

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin://Users/***/Downloads/maven/bin:/Users/***/Documents/android-sdk-macosx/tools:/Users/***/Documents/android-sdk-macosx/platform-tools

  1. Save and close the .bash_profile file
  2. execute command on terminal :

source .bash_profile

  1. execute command on terminal :

echo $ANDROID_HOME

verify that it shows the location

  1. execute command on terminal :

echo $PATH

Verify that it shows the location

 

answered by (151 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...