0

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?

3

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.