dharmendra vaishnav dharmendra vaishnav - 1 month ago 14
Android Question

Set ANDROID_HOME environment variable in mac

I am new in developing native app using Salesforce SDK. I tried to create android project from command line using forcedroid tool but there is problem in setting environment variable named ANDROID_HOME.

But i don't know how to set this variable.

I am attaching screenshot to describe my problem correctly.

enter image description here

Answer

Open the terminal and type :

export ANDROID_HOME=/Applications/ADT/sdk 

Add this to the PATH environment variable

export PATH=$PATH:$ANDROID_HOME/bin

Hope it works to you!