Error: ANDROID_HOME is not set and android command not in your PATH. You must fulfill at least one of these conditions.
For Windows:
set ANDROID_HOME=C:\ *installation location* \android-sdk
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
Taken from this installation guide.
Error: ANDROID_HOME is not set and android command not in your PATH on OS X
Option 1
for windows
Right click on My computer -> properties -> Advanced system setting -> Environment Variables
Now Edit Path on system variables to
;/yourSdkHome/tools;/youSdkHome/platform-tools
Option 2
In Windows machine, Open Command prompt and enter each of this commands one by one
set ANDROID_HOME=**C:\\android-sdk-windows**
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
In MAC Machine, open Terminal and enter these one by one
export ANDROID_HOME=/<installation location>/android-sdk-macosx
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Note - C:\\android-sdk-windows
should be replaced by the path of Android SDK in your machine.
<installation location>
should be replaced by the path of Android SDK in your machine.
Example
in MAC machine, if install location is ~/adt-bundle-mac-x86_64/sdk
first line should be
export ANDROID_HOME=~/adt-bundle-mac-x86_64/sdk
Error: ANDROID_HOME is not set and android command not in your PATH. You must fulfill at least one of these conditions
Making sure ANDROID_HOME is exported and adding the SDK tool directories to PATH should be more than enough to get you going.
Using the terminal
# First, we make sure we have a newline at the end of the .bash_profile
echo >> /Users/abdi/.bash_profile
# We set the ANDROID_HOME value in the .bash_profile
echo "export ANDROID_HOME=/Users/abdi/adt/sdk" >> /Users/abdi/.bash_profile
# We alter the PATH value a bit as well
echo "export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" >> /Users/abdi/.bash_profile
# We then tell the terminal to update all the things
. /Users/abdi/.bash_profile
Using a GUI (mostly)
You can also open the .bash_profile file in TextEdit using the open -e /Users/abdi/.bash_profile
command. If you get some errors about missing files, try running touch /Users/abdi/.bash_profile
and retry the open command. In the file that opens, add the following lines at the end.
export ANDROID_HOME=/Users/abdi/adt/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Running . /Users/abdi/.bash_profile
as in the terminal version after that should get you fully set up.
Cordova - ANDROID_HOME is not set and android command not in your PATH. You must fulfill at least one of these conditions
You haven't created the ANDROID_HOME environmental variable for your system. You should add it on the environmental variables by hand for example with method specified by mach on his answer.
Related Topics
How to Hide Soft Keyboard on Android After Clicking Outside Edittext
Android and Facebook Share Intent
How to Detect When an Android Application Is Running in the Emulator
Android Spinner: Get the Selected Item Change Event
Text Size and Different Android Screen Sizes
How to Install Trusted Ca Certificate on Android Device
What's the Best Way to Iterate an Android Cursor
Using Zxing to Create an Android Barcode Scanning App
How to Configure Gradle to Work "Offline" (Using Cached Dependencies)
Difference Between Adjustresize and Adjustpan in Android
Need to Handle Uncaught Exception and Send Log File
Android Starting Service At Boot Time , How to Restart Service Class After Device Reboot
Android: Storing Username and Password
Set Android Shape Color Programmatically
How to Keep Onitemselected from Firing Off on a Newly Instantiated Spinner