title: AndroidRuntime Caused by: java.lang.unsatisfiedLinkError: Couldn't load tfp_jni: findLibrary returned null
body: <p>So, it looks like there are a lot of issues like mine out there but not sure any of them are related to my issue.  OK.  I have an Android project that uses an SDK as a referenced library.  The SDK contains C++, so I am using the android-ndk-r9 library.  The SDK that I reference in my Android project is a JNI library (Oooooo - scary stuff).  Oh yeah, don't let me forget to mention armeabi-v7a (which appears to be another scary subject).  My error occurs when this line is executed:</p>
  
  <pre><code> System.loadLibrary("tfp_jni");
  </code></pre>
  
  <p>tfp_jni is really a libtfp_jni.so file under the armeabi-v7a folder in libs folder of my SDK library project.  That SDK library project contains an Android.mk file.  I do not think the code is getting in there.  But here is the contents of that .mk file:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_MODULE := tfp-prebuilt
  LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libtfp_jni.so
  LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
  include $(PREBUILT_SHARED_LIBRARY)
  </code></pre>
  
  <p>Then in my Android project, I have a jni folder containing an Android.mk and an Application.mk.  Here are the contents:</p>
  
  <p><strong>Android.mk</strong></p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  OPENCV_INSTALL_MODULES:=on
  OPENCV_INSTALL_CAMERA:=off
  
  include $(INNERID_ANDROID_ROOT)/Android.mk
  include $(OPENCV_ANDROID_ROOT)/sdk/native/jni/OpenCV.mk
  </code></pre>
  
  <p><strong>Application.mk</strong></p>
  
  <pre><code>APP_STL := gnustl_static
  APP_CPPFLAGS := -frtti -fexceptions
  APP_ABI := armeabi-v7a
  APP_PLATFORM := android-14
  </code></pre>
  
  <p><strong>Environment Variables</strong></p>
  
  <p><img src="https://i.imgur.com/UETNapQ.png?1" alt="Environment Variables"></p>
  
  <p><strong>Paths and Symbols - Includes</strong></p>
  
  <p><img src="https://i.imgur.com/K5vMDc6.png?1" alt="Paths and Symbols - Includes"></p>
  
  <p>All other tabs are empty except for the Source Location and Output Location, which displays the project folder.</p>
  
  <p><strong>Android project &amp; Preferences</strong></p>
  
  <p><img src="https://i.imgur.com/KlHrJmC.png?1" alt="Android project &amp; Preferences"></p>
  
  <p>I have tried various other answers from the similar questions on Stackoverflow with no success.  Please let me know if there is anything else you need to see and I'll provide the additional information as soon as possible.</p>
  
  <p><strong>New Image</strong></p>
  
  <p><img src="https://i.imgur.com/QSO1A4m.png?1" alt="Imgur"></p>
  
  <p>Correction!  The apk is in the verify-demo-nolic project /bin folder.  The Referenced Library tfp_java.jar is the SDK library project.  You can see from Finder that the .so file is in libs.  Does this help?</p>