You have to specify the complete path the ndk when executing prepare_sources
$./prepare_sources.sh /complete/path/to/android-ndk
If you only specify the relative path to the ndk, it'll also throw the same error.
Then, you can call 'ndk-build', 'ant debug',... whatever you want to.