title: Failed to find 'ANDROID_HOME' environment variable. Despite it's correctly set
body: <p>When i run</p>
  <blockquote>
  <p>$ionic cordova build android</p>
  </blockquote>
  <p>build failed with this error :</p>
  <blockquote>
  <p>cordova build android
  Failed to find 'ANDROID_HOME' environment variable. Try setting it &gt;manually.
  Failed to find 'android' command in your 'PATH'. Try update your 'PATH' &gt;to include path to valid SDK directory.
  [ERROR] An error occurred while running subprocess cordova.</p>
  </blockquote>
  <p>Despite when i run :</p>
  <blockquote>
  <p>cordova requirements</p>
  </blockquote>
  <p>I get this results :</p>
  <blockquote>
  <p>Requirements check results for android:</p>
  <p>Java JDK: installed 1.8.0</p>
  <p>Android SDK: installed true</p>
  <p>Android target: installed android-29,android-28,android-27,android-&gt;26,android-25,android-24,android-23,android-22,android-21</p>
  <p>Gradle: installed /usr/share/gradle/bin/gradle</p>
  </blockquote>
  <p>EDIT : i'm using Ubuntu</p>
  <p>EDIT : SOLVED BY running SUDO -E ionic cordova build android</p>