无法解析类型Cirrious.MvvmCross.Binding.Droid.Binders.IMvxLayoutInfactorFactoryFactory

时间:2015-06-17 15:00:21

标签: android xamarin mvvmcross

我目前正在使用MvvmCross整合一个Xamarin应用,但是当我在Android上的OnCreate中调用SetContentView时,我的第一个视图中遇到了一个奇怪的错误。

"Failed to resolve type Cirrious.MvvmCross.Binding.Droid.Binders.IMvxLayoutInfactorFactoryFactory"

at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.Resolve (System.Type t)[0x0003a] in <filename unknown>:0 
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.Resolve[IMvxLayoutInfactorFactoryFactory] () [0x00000] in <filename unknown>:0 
at Cirrious.CrossCore.Mvx.Resolve[IMvxLayoutInfactorFactoryFactory] () [0x00006] in <filename unknown>:0 
at Cirrious.MvvmCross.Binding.Droid.BindingContext.MvxAndroidBindingContext.get_FactoryFactory () [0x00008] in <filename unknown>:0 
at Cirrious.MvvmCross.Binding.Droid.BindingContext.MvxAndroidBindingContext.BindingInflate (Int32 resourceId, Android.Views.ViewGroup viewGroup, Boolean attachToRoot) [0x00000] in <filename unknown>:0 
at Cirrious.MvvmCross.Binding.Droid.BindingContext.MvxAndroidBindingContext.BindingInflate (Int32 resourceId, Android.Views.ViewGroup viewGroup) [0x00000] in <filename unknown>:0 
at Cirrious.MvvmCross.Binding.Droid.BindingContext.MvxBindingContextOwnerExtensions.BindingInflate (IMvxBindingContextOwner owner, Int32 resourceId, Android.Views.ViewGroup viewGroup) [0x0000c] in <filename unknown>:0 
at Cirrious.MvvmCross.Droid.Views.MvxActivity.SetContentView (Int32 layoutResId) [0x00000] in <filename unknown>:0 
at MyAviva.Droid.TermsAndConditionsView.OnCreate (Android.OS.Bundle bundle) [0x0000a] in d:\Data\WALPOB1\My Documents\Projects\MyAviva-NewArchitecture\MyAviva.Droid\MyAviva.Droid\TermsAndConditionsView.cs:30

当MvvmCross尝试处理数据绑定时,问题似乎发生了,但我目前还没有在我的视图和视图模型之间配置任何数据绑定。

IMvxLayoutInfactorFactoryFactory接口的用途是什么?此异常的原因是什么?

修改 所以,似乎我让我的App Start类实现IMvxConsumer然后修复了问题,但由于这标记已过时,我想了解为什么这会修复它以及更好的方法。

此致

0 个答案:

没有答案