Error: Failed to find 'ANDROID_HOME' environment variable. Failed to find 'android' command in your 'PATH'
<p>I've an error in ionic when I try to build android!</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>but:</p>

<pre><code>➜ echo $ANDROID_HOME
/home/amaitre/android-sdk-linux
</code></pre>

<p>and the command android work:
<a href="http://hpics.li/b1c351a" rel="nofollow">http://hpics.li/b1c351a</a></p>