Let's use Android SDK and NDK tools to build a working APK:
Generate San Angeles project files with the
cd $ANDROID_NDK/samples/san-angeles android update project -p ./
You may get the following error upon executing this command:
Error: The project either has no target set or the target is invalid. Please provide a --target to the 'android update' command.
This means that you have not installed all the Android SDK platforms ...