How do I package a native library with a class library?

JamesOBrien.3675JamesOBrien.3675 USMember
edited June 2015 in Xamarin.Android

I have a class library that serves as a wrapper for a native library and is referenced by DLLImports which simply provide the library name "libtestlib.so" as the path.

The class library is included into applications by "Reference" and a "using" statement.

I had hoped to package the native library in the class library project using "Assets/libs" which I added to the class library project and tagged them as a native library.

When I tried to use the class library in a test app, the native library (libtestlib.so) was not found.

However, if I included the native library in the test app "Assets/libs", everything worked as expected.

So, how do I package a native library with a class library so when referenced by an app activity everything is available?

Regards,
Jim

Sign In or Register to comment.