I get a Java.Lang.NoClassDefFoundError error when creating an Intent of a custom class (an Activity). According to this tutorial this means that class is not found at run-time. It’s certainly found at design-time as the project compiles successfully. I have tried manually setting assemblies’ path at Project -> Properties -> Reference Paths but the error doesn’t go away. I tried with a simpler project with a custom Activity on the same file as the parent activity and runs fine. Where should I set Java’s ClassPath in Mono for Android or what should I do to solve this issue?
Thanks in advance.
It is not a classpath issue. You need to add the class to your manifest file, for example:
Barry