[mono-android] Intergrated AdMob crashes app on touch

Dzugaru dzugaru at gmail.com
Mon Feb 6 14:23:24 UTC 2012


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.


More information about the Monodroid mailing list