If you have specified armeabi as the value of TARGET_ARCH_ABI, the build system uses the version of libfoo.so located in the armeabi directory. If you have specified x86 as the value TARGET_ARCH_ABI, the build system uses the version in the x86 directory.