尝试运行MvvmCross Fractal示例时,我在以下位置获得了Mvx.Resolve异常:
private void HackSetDisplayDimensions()
{
// Exception here
var disp = (DisplayDimensionsService) Mvx.Resolve<IDisplayDimensionsService>();
...
}
例外:
Cirrious.CrossCore.Exceptions.MvxException: Failed to resolve type
FractalGen.Core.Services.PlatformSpecific.IDisplayDimensionsService
这是来自NuGet的最新MvvmCross-Tutorials和MvvmCross。