Xamarin Forms oncreate bundle null 引用错误



我有一个简单的Xamarin Forms应用程序,但它说bundle是null oncreate。

在线:global::Xamarin.Forms.Forms.Init(this, bundle(;

完整错误:

System.IO.FileNotFoundException:无法加载文件或程序集"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'或其依赖项之一。

    protected override void OnCreate(Bundle bundle)
    {
        TabLayoutResource = Resource.Layout.Tabbar;
        ToolbarResource = Resource.Layout.Toolbar;
        base.OnCreate(bundle);
        global::Xamarin.Forms.Forms.Init(this, bundle);
        LoadApplication(new App());
        EMDKResults results = EMDKManager.GetEMDKManager(Android.App.Application.Context, this);
        AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
    }

几个小时前它奏效了。我没有看到任何可能导致这种情况的变化。我应该如何找到问题?

我简直不敢相信!

不知何故,我仅从无中选中了"链接到"SDK程序集。这是错误。我检查了它为无,它再次工作!

最新更新