I'm using MonoGame, and JNI integration code provided here http://monogame.codeplex.com/discussions/280895, last post. App builds and launches, but crashes when I touch anywhere on the screen with the following exception:
02-06 15:04:55.882: I/MonoDroid(4737): UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for Android.Views.InputEvent ---> Java.Lang.NoClassDefFoundError: Exception of type 'Java.Lang.NoClassDefFoundError' was thrown. 02-06 15:04:55.882: I/MonoDroid(4737): at Android.Runtime.JNIEnv.FindClass (System.String classname) [0x00000] in <filename unknown>:0 02-06 15:04:55.882: I/MonoDroid(4737): at Android.Views.InputEvent..cctor () [0x00000] in <filename unknown>:0 02-06 15:04:55.882: I/MonoDroid(4737): --- End of managed exception stack trace --- 02-06 15:04:55.882: I/MonoDroid(4737): java.lang.NoClassDefFoundError: android.view.InputEvent 02-06 15:04:55.882: I/MonoDroid(4737): at microsoft.xna.framework.AndroidGameWindow.n_onTouchEvent(Native Method) 02-06 15:04:55.882: I/MonoDroid(4737): at microsoft.xna.framework.AndroidGameWindow.onTouchEvent(AndroidGameWindow.java:57) 02-06 15:04:55.882: I/MonoDroid(4737): at android.view.View.dispatchTouchEvent(View.java:3766) 02-06 15:04:55.882: I/MonoDroid(4737): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) .... Any hint on what could be causing this? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Intergrated-AdMob-crashes-app-on-touch-tp5460176p5460176.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
