Adding external library into Xamarin android and accessing method gives java.lang.NoClassDefFoundErr

Hi All,

I am new to developing mobile apps using xamarin. I am having an android native application which includes libraries (*.jar and corresponding *.so file) into project class path and access the same in java classes.

As per following link, https://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/ , I have tried building a binding project which created dll's and using this in xamarin android project. In compilation jar file classes are recognized and methods/variables are able to access.
Once running the same in actual android device, I am getting following error.

Java.Lang.NoClassDefFoundError: Exception of type 'Java.Lang.NoClassDefFoundError' was thrown. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at Android.Runtime.JNIEnv.GetMethodID

Sign In or Register to comment.