我尝试在TipCalc示例之后使用MVVMCross,但我的View未加载。我可以看到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
我做错了什么? 谢谢
答案 0 :(得分:0)
我做错了什么?
从这个细节层面来看,不知道
问题显然在CalendarWUL
的初始化中 - 无论是什么。但是我无法从中诊断出来。
你可以尝试一些事情: