Error: Failed to find 'ANDROID_HOME' environment variable. Failed to find 'android' command in your 'PATH'

I’ve an error in ionic when I try to build android!

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.

but:
➜ echo $ANDROID_HOME
/home/amaitre/android-sdk-linux

and the command android work: