Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.