Java.Lang.UnsatisfiedLinkError: While trying to load library on a thread other than main thread.

In my custom PageRenderer for android I am trying to load a library on a separate thread like below

    private void LoadNativeLibraries()
    {
        new Thread(()=> {
            Java.Lang.JavaSystem.LoadLibrary("vpx");
        }).Start();

    }

But it is throwing

Java.Lang.UnsatisfiedLinkError: Library vpx not found; tried [/vendor/lib/libvpx.so, /system/lib/libvpx.so]

But if I try to load it without creating a separate thread everything works fine.

Any help?

Sign In or Register to comment.