I've installed nodejs and cordova and downloaded android sdk. The thing is when I try and add an android platform here's what sortf happen:
$ sudo cordova platform add android
Creating android project...
/home/blurt/.cordova/lib/npm_cache/cordova-android/3.6.4/package /bin/node_modules/q/q.js:126
throw e;
^
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
None of the solutions that I found in the Internet worked.
When I type :
$ echo $ANDROID_HOME
it gives nothing.
When I type:
echo $PATH
it prints
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/games:/opt/android-sdk/tools:/opt/android-sdk/platform- tools:/opt/node/bin:/opt/android-sdk/tools:/opt/android-sdk/platform-tools:/opt/node/bin
shows this.
I believe my SDK path is :/opt/android-sdk/tools