On Jul 19, 2011, at 9:57 AM, Narcís Calvet wrote: > Re.: If that is the problem, the solution is to add an assembly reference in > your project to Steema.TeeChart.TChart.dll, so that mandroid can find it. If > that isn't the solution, I'm afraid that you'll need to file a bug report, > attaching your project, so that I can investigate further. :-( > > I have a reference to that assembly in the project references section. Given > the problem is NoClassDefFoundError again what do you suggest. Should I send > something that you can run to reproduce the problem at your end?
I think it means that JNIEnv.FindClass(Type) needs more error checking. :-) On a more serious note, what is the stack trace for the NpClassDefFoundError? My _guess_ is that you're somehow using a non-Java.Lang.Object subclass in a call to JNIEnv.FindClass(Type), and mandroid only generates Android Callable Wrappers for Java.Lang.Object subclasses. For example, the following should result in a NoClassDefFoundError: IntPtr c = JNIEnv.FindClass(typeof(List<>)); // or some other type A stack trace would help diagnose this and determine what's calling JNIEnv.FindClass(). If this is the issue, the fix is to either (1) Don't Do That, or (2) change the type that's being passed to JNIEnv.FindClass() so that it has Java.Lang.Object as a base class. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid