Cordova - ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions <p>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: </p> <pre><code>$ 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. </code></pre> <p>None of the solutions that I found in the Internet worked. </p> <p>When I type : </p> <pre><code>$ echo $ANDROID_HOME </code></pre> <p>it gives nothing.</p> <p>When I type: </p> <pre><code> echo $PATH </code></pre> <p>it prints </p> <pre><code>/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 </code></pre> <p>shows this.</p> <p>I believe my SDK path is <code>:/opt/android-sdk/tools</code></p>