title: DllNotFoundException on Android
body: <p>I'm trying to load shared libraries in Unity. It works on Windows/Editor but not on Android, whatever I do or use for libraries I always get the DllNotFoundException.</p>
  
  <p>I am using lib.so files, those are for 32BIT ARM EABIS, so the cross platform compilation seems to succeed.</p>
  
  <p>my lib.so files are in the <code>Assets/Plugins/Android/libs/armeabis-v7a/</code> folder.</p>
  
  <p>I tried different syntax for DllImport (assuming the lib is called Plugin, and the files Plugin.dll and libPlugin.so) :</p>
  
  <pre>
  [DllImport("Plugin")] => works for Windows only
  [DllImport("libPlugin.so")] => obviously wont work for Windows, but doesn't work for Android either.
  </pre>
  
  <p>If I open the .apk with winrar, libs are in the <code>libs/armeabis-v7a</code> folder.</p>
  
  <p>The smartphone I use for my tests is an OnPlus3 with a armv8 processor.</p>
  
  <p>Anyone managed to sucessfuly load a shared native library on Android ? Any ideas about what I'm doing wrong ?</p>
  
  <p>Thank you</p>
  
  <p>EDIT:</p>
  
  <p>plugin code can be found here : <a href="https://github.com/FFmpeg/FFmpeg" rel="nofollow noreferrer">https://github.com/FFmpeg/FFmpeg</a></p>
  
  <p>C# code can be found here : <a href="https://github.com/Ruslan-B/FFmpeg.AutoGen/blob/7e001dde3acaad70ed188b75e686f23574f81388/FFmpeg.AutoGen/FFmpegInvoke.cs" rel="nofollow noreferrer">https://github.com/Ruslan-B/FFmpeg.AutoGen/blob/7e001dde3acaad70ed188b75e686f23574f81388/FFmpeg.AutoGen/FFmpegInvoke.cs</a></p>
  
  <p>Adding FFmpegInvoke.cs in the Unity Project or generating the FFmpeg.Autogen.dll and adding it to the project gives the same result (dll just makes the Unity Project faster to build).</p>