Mono failing on Android Wrapper at Runtime

Seemingly out of nowhere, I am getting this error at runtime:

[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.NullReferenceException: Object reference not set to an instance of an object
[MonoDroid] at HCCAndroid.App.MainMenu.OnCreate (Android.OS.Bundle) [0x000e7] in /Users/MainMenu.cs:72
[MonoDroid] at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mavericks-monodroid-5.1-series/d23da369/source/monodroid/src/Mono.Android/platforms/android-10/src/generated/Android.App.Activity.cs:1777
[MonoDroid] at (wrapper dynamic-method) object.9589ad56-d8b5-405a-85eb-f4b81e187c84 (intptr,intptr,intptr)

It appears to be that the Mono framework is generating code and failing at runtime

I see a System.InvalidOperationException saying "Declaring Method can only be used on Generic Arguments"

Any ideas?

TIA

Tagged:

Posts

  • mr-incrediblemr-incredible USMember

    A little more info ...

    It looks like the properties:

    isSecurityCritical, isSecuritySafeCritical and isSecuriyTransparent

    are throwing a System.NotImplementedException

  • SupreetTare.9314SupreetTare.9314 GBUniversity ✭✭

    Hi,
    Did you ever get to solve this? I just now hit the same exception out of nowhere.

    Thanks
    ST

Sign In or Register to comment.