我得到了相同的文件以下錯誤:LocationToLatLngValueConverter.cs類型「System.ComponentModel.INotifyPropertyChanged」在未引用的程序定義
參考: https://github.com/MvvmCross/NPlus1DaysOfMvvmCross/tree/master/N-41-Maps
The type `System.ComponentModel.INotifyPropertyChanged` is defined in an assembly that is not referenced. You must add a reference to assembly `System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
`D:\MVVMCross\MVVMCrossApps\MAP\Map\Map.Droid\Views\LocationToLatLngValueConverter.cs`
`Map.Droid.Views.LocationToLatLngValueConverter.Convert(Map.Core.ViewModels.Location, System.Type, object, System.Globalization.CultureInfo)': no suitable method found to override`
`D:\MVVMCross\MVVMCrossApps\MAP\Map\Map.Droid\Views\LocationToLatLngValueConverter.cs`
`Map.Droid.Views.LocationToLatLngValueConverter.ConvertBack(Android.Gms.Maps.Model.LatLng, System.Type, object, System.Globalization.CultureInfo)': no suitable method found to override D:\MVVMCross\MVVMCrossApps\MAP\Map\Map.Droid\Views\LocationToLatLngValueConverter.cs`
根據演示了應用程序的所有內容。
我仍然無法擺脫問題。
你能分享這個值轉換器的代碼? – Martijn00
@Martijn是的,在這裏你可以下載我的代碼: https://www.dropbox.com/s/g9qp93i8rr3tab9/Map.rar?dl=0 – VikrantMore
我已經創建了同樣的申請表xamarin博客,重新編碼它可以解決問題,但我得到以下錯誤:有什麼我失蹤? Cirrious.CrossCore.Exceptions.MvxException:未能從定位器MvxDefaultViewModelLocator中爲類型MapTest.Core.ViewModels.FirstViewModel構造並初始化ViewModel - 查看MvxTrace以獲取更多信息 – VikrantMore