title: Caused by: java.lang.UnsatisfiedLinkError: Cannot load library
body: <p>I am writing a game, and I have huge native library, I am trying to load my native library in my main activity like</p>
  
  <pre><code> static {
          try {
              System.loadLibrary("mylib");
          } catch (UnsatisfiedLinkError e) {
              Log.d(TAG, "Unsatisfied Link error: " + e.toString());
          }
      }
  </code></pre>
  
  <p>I have tested this code on many devices in house, I don't get this error. but from my published I do get logs with "<strong>Caused by: java.lang.UnsatisfiedLinkError: Cannot load library</strong>". NOTE: This crash is not universal, only few people are getting this crash</p>
  
  <ul>
  <li>Is it problem where the library is put in exported apk ? I have now library put into /libs/armabi/libmylib.so automatically by eclipse?</li>
  <li>Is it some thing to do with version of android ? I am supporting android versions since 2.3 (API level 9)</li>
  <li>or do I need to load library from different place?</li>
  <li>or am I missing something very important</li>
  <li>Is it problem with whole app being installed on SDCARD ?</li>
  </ul>
  
  <p>More Info on crash is : load_segments: 68 failed to map segment from mylib.so </p>