【发布时间】:2019-11-12 23:38:13
【问题描述】:
我正在启动一个新的 xamarin 主页面以进行测试,并更新了 xamarin.android.support 和 xamarin.forms 版本的 nuget 包。之后,我的程序得到了异常:
LoadApplication 得到异常错误:
base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
Unhandled Exception:
System.TypeLoadException: Could not load type of field 'Xamarin.Forms.Platform.Android.RendererPool:_freeRenderers' (0) due to: Could not resolve type with token 01000275 from typeref (expected class 'System.Collections.Generic.Stack`1' in assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Collections.Generic.Stack`1 member:(null) occurred
【问题讨论】:
标签: xamarin xamarin.forms xamarin.android visual-studio-2017 nuget-package