[mono-android] Mono out of synch - broken mono install

Jonathan Pryor jonp at xamarin.com
Tue Dec 18 03:37:16 UTC 2012


On Dec 17, 2012, at 3:32 PM, dickies <archmapper at gmail.com> wrote:
> My project builds ok, but when deploying to an emulator I get this error:
> 
> 'cant resolve internal call to "System.Reflection.FieldInfo::get_marshal_info()" (tested without signature also)
> 
> Your mono runtime and class libraries are out of sync. The out of sync library is: mscorlib.dll

The assemblies you build your code against on your machine need to be the same versions as that found on your target device. This is presumably a Debug build of your app, and thus your app is using the Mono.Android.DebugRuntime and Mono.Android.Platform.ApiLevel_* packages on your target, and your target may have a different version than what is installed on your development machine.

(This shouldn't happen, as IDE-based deploy should be checking the package versions and re-deploying when they don't match, but it's not unheard of for things to break...)

I would suggest opening Settings > Apps on your target, and removing all "Mono" packages. Then clean + rebuild your project, then re-deploy. The shared runtime packages should be reinstalled onto the target device, and they should match what your app was built against.

 - Jon



More information about the Monodroid mailing list