title: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad
body: <p>I am developing an android application including native code</p>
  
  <p>First I compile a prebuilt library. The Android.mk file is <em>project_path/jni/qt-library/Android.mk</em> : </p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  LOCAL_MODULE := qt5Core-prebuilt
  LOCAL_SRC_FILES := libQt5Core.so
  LOCAL_EXPORT_C_INCLUDES += qtbase/include
  
  include $(PREBUILT_SHARED_LIBRARY)
  </code></pre>
  
  <p>Then I compile my library whose the Android.mk file is <em>project_path/jni/my-library/Android.mk</em> : </p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  LOCAL_MODULE := myLibrary
  LOCAL_SRC_FILES := com_example_qtsignaux_Library.cpp
  LOCAL_SRC_FILES += Receiver.cpp
  LOCAL_SRC_FILES += Emitter.cpp
  LOCAL_SRC_FILES += moc_Receiver.cpp
  LOCAL_SRC_FILES += moc_Emitter.cpp
  
  LOCAL_SHARED_LIBRARIES := qt5Core-prebuilt
  
  LOCAL_C_INCLUDES += ../qt-library/qtbase/include
  
  LOCAL_LDLIBS := -llog
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>When I compile the jni folder using the ndk-build script, everything works well but get the following error when calling : </p>
  
  <pre><code>  static {
      System.loadLibrary("myLibrary");
    }
  
  java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.example.qtsignaux-1/lib/arm/libmyLibrary.so"
  </code></pre>
  
  <p>Notice I unziped the apk folder and every libaries : <em>libQt5Core.so, libmyLibrary.so and libgnustl_shared.so</em> are in the lib/armeabi/ and lib/armeabi-v7a/ folders</p>
  
  <p>My Application.mk file looks like : </p>
  
  <pre><code>APP_ABI += armeabi armeabi-v7a
  APP_STL := gnustl_shared
  APP_CPPFLAGS := -frtti -fexceptions 
  </code></pre>
  
  <p>I don't really understand what the error means and why the system try to load a library in the <em>application_package_name/lib/<strong>arm</em></strong> folder. Does this folder really exist or this is just armeabi and  armeabi-v7a in my situation?</p>
  
  <p>Thank you in advance for your help</p>