MvvmCross在应用程序启动时崩溃"Method 'Array.Empty' not found"异常



我最近将我的Xamarin.Android应用程序MvvmCross包从4.1.4更新到4.1.5,现在无法启动我的应用程序。 只要我的代码在崩溃前没有得到任何控制,我什至无法调试问题。

System.MissingMethodException: Method 'Array.Empty' not found.
  at MvvmCross.Droid.Views.MvxActivityViewExtensions.OnViewCreate (IMvxAndroidView androidView, Android.OS.Bundle bundle) [0x00055] in <filename unknown>:0
  at MvvmCross.Droid.Views.MvxActivityAdapter.EventSourceOnCreateCalled (System.Object sender, MvvmCross.Platform.Core.MvxValueEventArgs`1 eventArgs) [0x0000c] in <filename unknown>:0
  at at (wrapper delegate-invoke) System.EventHandler`1[MvvmCross.Platform.Core.MvxValueEventArgs`1[Android.OS.Bundle]]:invoke_void_object_TEventArgs (object,MvvmCross.Platform.Core.MvxValueEventArgs`1<Android.OS.Bundle>)
  at MvvmCross.Platform.Core.MvxDelegateExtensionMethods.Raise[T] (System.EventHandler`1 eventHandler, System.Object sender, MvvmCross.Platform.Core.T value) [0x00000] in C:vcsgitMvvmCrossMvvmCrossPlatformPlatformCoreMvxDelegateExtensionMethods.cs:21
  at MvvmCross.Platform.Droid.Views.MvxEventSourceActivity.OnCreate (Android.OS.Bundle bundle) [0x00014] in <filename unknown>:0
  at MvvmCross.Droid.Views.MvxSplashScreenActivity.OnCreate (Android.OS.Bundle bundle) [0x00017] in <filename unknown>:0
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00011] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.App.Activity.cs:2857
  at at (wrapper dynamic-method) System.Object:97318edf-ae39-4dd0-a17c-810218756b0b (intptr,intptr,intptr)
  • 清理/重建无济于事
  • 回滚到4.1.4还原应用

这似乎是MVVMCross和Mono的当前问题。更多信息请点击此处:https://github.com/MvvmCross/MvvmCross/issues/1330

最新更新