小编Joe*_*oey的帖子

更新Nuget导致未处理的异常:System.TypeLoadException

我正在启动一个新的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
Run Code Online (Sandbox Code Playgroud)

xamarin.android nuget-package xamarin xamarin.forms visual-studio-2017

7
推荐指数
2
解决办法
2044
查看次数