I am using Ubuntu 14.04 LTS 64 bit, I have an ionic project and i have already Android installed, but when trying to emulate or run as Android i get these errors
Running command: /home/fathi/ionic/favorlinks/hooks/after_prepare/010_add_platform_class.js /home/fathi/ionic/favorlinks 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.
I have tried to modify ~/.bashrc file by adding this
export ANDROID_HOME=/home/fathi/Android/Sdk
But, i still getting the same errors