phonegap add android error

on the phonegap 3.4 running to command

$phonegap add android

give an error like this

/bin/node_modules/q/q.js:126
throw e;
^

the problem is the android sdk still not configured properly
you need to configure the environment ANDROID_HOME, ANDROID_HOME/tools and ANDROID_HOME/platform-tools
add this in your ~/.bash_profile

export ANDROID_HOME=$HOME/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Advertisements