Xamarin Android:Bundle为null - 已抛出KeyNotFoundException

时间:2017-12-28 18:29:41

标签: android xamarin xamarin.android mvvmcross

我在我的Xamarin Android应用程序中使用MVVMCross。有时当我从一个视图模型导航到另一个视图模型时,我得到了

import '../../node_modules/moment/src/locale/ru.js'

当创建新活动时,会在以下函数的System.Collections.Generic.KeyNotFoundException has been thrown 处发生这种情况。

base.OnCreate(bundle)

这不能通过以下某些步骤再现,并且非常随机。我想知道是否有其他人面临这种​​问题,有没有办法解决它。

更新: 错误日志

protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            if (contentResourceId >= 0)
            {
                SetContentView(contentResourceId);
            }

            DoOnCreate(bundle);
        }

0 个答案:

没有答案