Building from the command line:
- Find out targets (Android API levels) you can build for by running:
android list targets
in sdk/tools (sdk is the directory where the Android sdk is installed).
- Enter the build directory within the cocos2d-x directory and run:
python android-build.py -p targetapi cpp-tests
The first build for a project takes quite a while, but subsequent builds are quick.