Unable to Build for Android

When I try

ionic build android

I get the following error on Terminal

$ ionic build android
Running command: /home/dna/myApp1/hooks/after_prepare/010_add_platform_class.js /home/dna/myApp1
add to body class: platform-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.

PS : Using Ubuntu 14.04

Solved with some help from Stackoverflow

I got this solved by adding the following line at the bottom of .profile ( a hidden file in home folder )

PATH="$PATH:/home/YourUsrName/Android/Sdk/tools"

make sure to change YourUsrName to your user name.