Skip to content Skip to sidebar Skip to footer

Cordova Build Android Throws Error On Ubuntu 12.04

The issue looks very familiar with this Error: ANDROID_HOME is not set and 'android' command not in your PATH. You must fulfill at least one of these conditions. But I am not able

Solution 1:

This ...

sudo cordova build android  

runs in the environment of root whereas this ...

echo$ANDROID_HOME

was not executed as root. Check what echo $ANDROID_HOME returns as root - or (strongly recommended) - run Cordova as another user than root.

p.s.: I'm running Cordova 4.0.0 on Ubuntu 14.04 without sudo.

Post a Comment for "Cordova Build Android Throws Error On Ubuntu 12.04"