title: How to set Android Home in Ubuntu when the path is in the root folder
body: <p>I'm working in a cordova project, but when i tried to build this project, i got that:</p>
  <p>**</p>
  <blockquote>
  <p>[Error: Failed to find 'ANDROID_HOME' environment variable. Try
  setting setting it manually. Failed to find 'android' command in your
  'PATH'. Try update your 'PATH' to include path to valid SDK
  directory.]</p>
  </blockquote>
  <p>**
  i installed Android Studio, and by default that program put the SDK in the root folder, so i saw a few answers about this same error and i tried to set this variable as a few people said, but did not work, i tried this:</p>
  <p>**</p>
  <blockquote>
  <p>export HOME=&quot;/root&quot;</p>
  <p>export ANDROID_HOME=&quot;$HOME/Android/Sdk&quot;
  PATH=&quot;$HOME/Android/Sdk/tools:$ANDROID_HOME/platform_tools:$PATH&quot;</p>
  </blockquote>
  <p>**
  but failed too</p>
  <p>i don't find that error, please help, thanks</p>