The question was rised at
https://github.com/strophe/libstrophe/issues/57 .
I've added makefiles for Android to the android branch. For now, without TLS support, because building openssl for android is not an easy task for me. So, in order to build libstrophe complete the next steps:
1. Fetch libstrophe and switch to the android branch (the branch adds makefiles for Android):
git clone
https://github.com/strophe/libstrophe.git cd libstrophe && git checkout android
2. Place expat sources to expat/ directory, check that ./expat/lib exists (I used expat-2.1.0)
3. Change ./jni/Application.mk if needed (set correct platform and targets)
4. run `ndk-build`
The above steps build static library and examples/basic.c.