Remember to either log out and back in, or source the $HOME/.bashrc file before trying to use the updated PATH.
Code:
source $HOME/.bashrc
or simply
source ~/.bashrc
If you run "echo $PATH", it should print out your new directory as well as the others if you've done it correctly. The output posted above does not show this new location as part of the PATH, so make sure you're exporting it (you seem to be), and that you source it (or log out and back in) before trying to use it.
You'll need to adjust the directory location in the alias as well if you want to go that route, it's still pointing to "$HOME/rich/". The alias would also need to point to the script itself, not the directory:
Code:
alias ndk-build="$HOME/X/Development/Android/android-ndk-r8/ndk-build"
Remember, the PATH tells the machine "when I type the name of any program, look in these directories until you find it". Meanwhile, "alias A=B" tells the machine "when I type A, what I really mean is B". You only need one or the other, both would be redundant.