Jni build with Android studio error: Library '/system/lib/libhoudini.so' not found
<p>Because some reason, I have to generate some text from C. So, I wrote some C method for that purpose. I build the Jni with Android studio, and it seem work fine with my 5.1.0 Genymotion emulator. 
But when I run the build on 4.1.1 emulator, I got this issue :</p>

<pre class="lang-html prettyprint-override"><code>Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: load_library[1098]: Library '/system/lib/libhoudini.so' not found
at java.lang.Runtime.loadLibrary(Runtime.java:370)
at java.lang.System.loadLibrary(System.java:535)
</code></pre>

<p>After researching. Maybe the problem is from building jni issue, that I haven't build the *.so file for x86. But when I decompile the apk, it seem that the *.so file already in "x86" folder.</p>

<p><a href="https://i.stack.imgur.com/3BAlo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3BAlo.png" alt="enter image description here"></a></p>

<p>Here is the android.mk file that I get from app's build folder :</p>

<pre class="lang-html prettyprint-override"><code>LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := ofx
LOCAL_LDFLAGS := -Wl,--build-id
LOCAL_SRC_FILES := \
    xxx.../app/src/main/jni/key/Base64Util.c \
    xxx.../app/src/main/jni/key/hidingutil.c \

LOCAL_C_INCLUDES += xxx.../app/src/main/jni
LOCAL_C_INCLUDES += xxx.../app/src/Beneficiary/jni
LOCAL_C_INCLUDES += xxx.../app/src/debug/jni
LOCAL_C_INCLUDES += xxx.../app/src/BeneficiaryDebug/jni

include $(BUILD_SHARED_LIBRARY)
</code></pre>



<p>Please help me make sure that the build will be fine to all devices, It will be very appreciated. I don't have many devices to take test on.
Thanks.</p>