Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

C++ library dependecy not ported to Android App.

I am building an universal app for Android , in which i am using a .NET dll library which i created for some specific use , this .NET library has dependecy to external C++ library , the library is imported in .NET dll like this:

[DllImport("yourdll.dll")]
public static extern int ExportToCall(int argument);

The problem is when i build the app on android it seems like the .NET ( converted to PCL ) works perfectly but when it comes to DLLImport "yourdll.dll" it chrashes beacuse the C++ DLL is not found by android app.

Debug:

05-29 07:35:26.685 W/Mono ( 3812): DllImport unable to load library 'dlopen failed: library "/data/app/androidIOS.Android-1/lib/x86/libyourdll.dll" not found'.

Sign In or Register to comment.