title: How to use 32-bit native libraries on 64-bit Android device
body: <p>I use a native library in my application that is only compiled for armeabi, armeabi-v7a and x86.</p>
  
  <p>When this library is loaded on a 64-bit device like the Samsung S6, the application crashes with an UnsatisfiedLinkError</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myapp-2/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libfoo.so"
      at java.lang.Runtime.loadLibrary(Runtime.java:366)
      at java.lang.System.loadLibrary(System.java:989)
  </code></pre>
  
  <p>The library is closed source unfortunately. Is there any way to fix this without recompiling the library with 64-bit targets?</p>