0

我尝试按照TipCalc示例使用 MVVMCross,但我的视图没有加载。我可以看到 Activity 标签,但没有显示布局,应用程序输出如下:


Forwarding debugger port 8973
Forwarding console port 8974
Detecting existing process
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/MVX.DroidWUL.dll
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.MvvmCross.Droid.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.CrossCore.Droid.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.CrossCore.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/System.Windows.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.MvvmCross.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.MvvmCross.Binding.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.MvvmCross.Binding.Droid.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/PCLCoreMVX.dll
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.MvvmCross.Plugins.Json.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Newtonsoft.Json.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/System.Net.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/System.Xml.Serialization.dll [External]
Loaded assembly: /data/data/MVX.DroidWUL/files/.__override__/Cirrious.MvvmCross.Localization.dll [External]
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Core.dll [External]
[ApplicationPackageManager] cscCountry is not German : LUX
[mono] WARNING: The runtime version supported by this application is unavailable.
[mono] Using default runtime: v2.0.50727
[monodroid-gc] GREF GC Threshold: 46800
[MonoDroid] Xamarin/Android Trial Mode Active
[ApplicationPackageManager] cscCountry is not German : LUX
Loaded assembly: MonoDroidConstructors [External]
[ApplicationPackageManager] cscCountry is not German : LUX
Loaded assembly: System.dll [External]
Loaded assembly: System.Xml.dll [External]
[mvx]   0.05 Setup: PlatformServices start
mvx:Diagnostic:  0.05 Setup: PlatformServices start
[mvx]   0.70 Setup: Bootstrap actions
mvx:Diagnostic:  0.70 Setup: Bootstrap actions
[mvx]   0.82 Setup: StringToTypeParser start
mvx:Diagnostic:  0.82 Setup: StringToTypeParser start
[mvx]   0.84 Setup: ViewModelFramework start
mvx:Diagnostic:  0.84 Setup: ViewModelFramework start
[mvx]   0.85 Setup: PluginManagerFramework start
mvx:Diagnostic:  0.85 Setup: PluginManagerFramework start
[mvx]   0.89 Configuring Plugin Loader for Cirrious.MvvmCross.Plugins.Json.PluginLoader
mvx:Diagnostic:  0.89 Configuring Plugin Loader for Cirrious.MvvmCross.Plugins.Json.PluginLoader
[mvx]   0.89 Ensuring Plugin is loaded for Cirrious.MvvmCross.Plugins.Json.PluginLoader
mvx:Diagnostic:  0.89 Ensuring Plugin is loaded for Cirrious.MvvmCross.Plugins.Json.PluginLoader
[mvx]   0.90 Setup: App start
mvx:Diagnostic:  0.90 Setup: App start
[mvx]   0.91 Setup: ViewModelTypeFinder start
mvx:Diagnostic:  0.91 Setup: ViewModelTypeFinder start
[mvx]   0.92 Setup: ViewsContainer start
mvx:Diagnostic:  0.92 Setup: ViewsContainer start
[mvx]   0.93 Setup: ViewDispatcher start
mvx:Diagnostic:  0.93 Setup: ViewDispatcher start
[mvx]   0.95 Setup: Views start
mvx:Diagnostic:  0.95 Setup: Views start
[mvx]   1.15 Setup: CommandCollectionBuilder start
mvx:Diagnostic:  1.15 Setup: CommandCollectionBuilder start
[mvx]   1.16 Setup: NavigationSerializer start
mvx:Diagnostic:  1.16 Setup: NavigationSerializer start
[mvx]   1.21 Setup: LastChance start
mvx:Diagnostic:  1.21 Setup: LastChance start
[mvx]   1.53 Setup: Secondary end
mvx:Diagnostic:  1.53 Setup: Secondary end
[mvx]   1.62 Null Extras seen on Intent when creating ViewModel - this should not happen - have you tried to navigate to an MvvmCross View directly?
mvx:Error:  1.62 Null Extras seen on Intent when creating ViewModel - this should not happen - have you tried to navigate to an MvvmCross View directly?
[mvx]   1.63 ViewModel not loaded for view CalenderWUL
mvx:Warning:  1.63 ViewModel not loaded for view CalenderWUL

我究竟做错了什么?谢谢

4

1 回答 1

0

我究竟做错了什么?

从那个细节级别,不知道

问题显然出在初始化的某个地方CalendarWUL——不管它是什么。但我无法从中诊断。

你可以尝试一些事情:

于 2013-05-23T15:55:38.890 回答