32-bit NDK bug
The 32-bit versions of Android NDK r11b and r11c contain a bug that prevents it from running the prebuilt versions of tools on 64-bit machines.
When the bug triggers, building native Android libraries fails with the following message:
process_begin: CreateProcess(NULL,
<...>/android-ndk-r11b/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
...) failed.
make (e=2): The system cannot find the file specified.
make (e=2): The system cannot find the file specified.
You can fix it by changing the following line in <NDK>\build\core\init.mk:
HOST_TAG64 := $(HOST_OS_BASE)-$(HOST_ARCH64)
Replace it with the following
HOST_TAG64 := windows
This will force it to use 32-bit versions of tools that are actually included with that NDK release.