title: ANDROID_HOME is not set and "android" command not in your PATH Phonegap
body: <p>i have installed android bundle and i have configured everything in .bashrc file and even when i say android in command line .. i am getting android manager .. but when i say  ionic platform add android i am always getting error as "Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions." . i tried many way but issue not fixed .</p>
  
  <p>my platform : </p>
  
  <p>Ubuntu 14.04 64 bit</p>
  
  <p>.bashrc file :</p>
  
  <pre><code>    export HOME="/home/system"
      export ANDROID_HOME="$HOME/adt-bundle-linux-x86_64-20140702/sdk/tools"
      export ANDROID_PLATFORM_TOOLS="$HOME/adt-bundle-linux-x86_64-20140702/sdk/platform-tools"
      export PATH="$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS:$PATH"
      export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
      export ANT_HOME="/usr/share/ant"
      export PATH="$ANT_HOME/bin:$PATH"
      export ANDROID_HOME="/home/system/adt-bundle-linux-x86_64-20140702/sdk/tools"
  </code></pre>
  
  <p>error while execution : </p>
  
  <pre><code>    system@system-H81M-S1:/usr/share/nginx/www/myApp# ionic platform add android
      npm http GET https://registry.npmjs.org/cordova-android/3.6.3
      npm http 200 https://registry.npmjs.org/cordova-android/3.6.3
      npm http GET https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.3.tgz
      npm http 200 https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.3.tgz
      Creating android project...
  
      /system/.cordova/lib/npm_cache/cordova-android/3.6.3/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.
      at /system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/lib/check_reqs.js:158:19
      at _fulfilled (/system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:798:54)
      at self.promiseDispatch.done (/system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:827:30)
      at Promise.promise.promiseDispatch (/system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:760:13)
      at /system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:821:14
      at flush (/system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:108:17)
      at process._tickCallback (node.js:419:13)
      at Function.Module.runMain (module.js:499:11)
      at startup (node.js:119:16)
      at node.js:906:3
  
      Error: /system/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/
      create: Command failed with exit code 8 at ChildProcess.whenDone  (/usr/lib/node_modules/cordova/node_modules/
      cordova-lib/src/cordova/superspawn.js:135:23)
      at ChildProcess.emit (events.js:98:17)
      at maybeClose (child_process.js:756:16)
      at Process.ChildProcess._handle.onexit (child_process.js:823:5)
  </code></pre>
  
  <p>may i know how i can fix this error </p>