'How to use java native method System.loadLibrary() in xamarin android?

I need to load two libraries before starting my activity. I can use this method through the native java language in android studio, here is my java code that is working =>

    static {
    System.loadLibrary("gstreamer_android");
    System.loadLibrary("tutorial-1");
}

But in xamarin I can't find a way to load it... Does anyone know if there is something similar that I can use in xamarin? All I have for reference is this link xamarin documentation



Solution 1:[1]

Try this

https://docs.microsoft.com/en-us/dotnet/api/java.lang.javasystem.loadlibrary?view=xamarin-android-sdk-12

JavaSystem.LoadLibrary(" [lib-name] ")

Or this may help Load .so file in Xamarin.Android

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1