Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
309 views
in Others by
retagged by
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 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer
  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

 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...