I get this error:
Failed to find 'ANDROID_HOME' environment variable. Try setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
This happens because I have on .bashrc the $ANDROID_HOME and $PATH set up, but when I run sudo ionic cordova build --release android doesn't detect it to me. What should I do?