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