title: Error while loading native library in Android Application
body: <p>I'm having some troubles about using a shared library (.so) in an Android application.
  I have 3 projects:</p>
  
  <ol>
  <li><p>Native code project => build c++ files in .so library
  Let's call it <strong>libNative.so</strong></p></li>
  <li><p>Android library project => calls the native code. The output of this project is a .jar file.
  Let's call it "<strong>stack.jar</strong>"</p></li>
  <li><p>Android application sample which uses the android library project.</p></li>
  </ol>
  
  <p>In the sample application (3) libraries' properties tab, I configured the stack.jar file to be linked with the .so library. My .so native library is well included in the generated APK.
  => Eclipse copies it in the "<strong>lib</strong>/armeabi" folder.</p>
  
  <p>If I launch the APK on a phone, I get the following error:</p>
  
  <pre><code>Caused by: java.lang.UnsatisfiedLinkError: Couldn't load libNative:
  findLibrary returned null at
  java.lang.Runtime.loadLibrary(Runtime.java:365) at
  java.lang.System.loadLibrary(System.java:535)
  </code></pre>
  
  <p>I'm guessing the error is that Eclipse copies the .so library in a lib folder instead of <strong>libs</strong> , and that System.loadLibrary is looking for the path <strong>libs/armeabi</strong>..., right ? Or I may be totally wrong !</p>
  
  <p>Thanks a lot for your help,</p>
  
  <p><strong>EDIT</strong>: when I install the APK, the .so lib is well copied in <strong>data/data/mypackage/lib</strong> folder. Still, I can't load it. Is it because the load is happening in the .jar file and not directly in the application sample ??</p>