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


i trying build android application on mac os x using cordova. when execute cordova build following error :

[error: android_home not set , "android" command not in path. must fulfill @ least 1 of these conditions.]

what can fix this?

you need set 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 have similar question: setting android_home enviromental variable on mac os x


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -