Mathias Verhoeven
Mathias Verhoeven

Reputation: 1057

[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]

I am trying to build an android application on Mac OS X by using cordova. When I execute cordova build I get the following error :

[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]

What can I do to fix this?

Upvotes: 0

Views: 1723

Answers (1)

Jorgesys
Jorgesys

Reputation: 126445

You need to set the path of Android SDK

Windows:

set ANDROID_HOME=C:\<installation location>\android-sdk-windows
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

Mac OS x

export ANDROID_HOME=/<installation location>/android-sdk-macosx
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Here you have a similar question: Setting ANDROID_HOME enviromental variable on Mac OS X

Upvotes: 3

Related Questions