我在我的 PCL 项目中使用 Xamarin.Forms.Maps 和 Microsoft.AppCenter.Push。最近我尝试将我的 Push 更新到最新版本,但它与 Maps 发生冲突,因为需要不同版本的 Xamarin.GooglePlayServices.Base。
严重性代码说明项目文件行抑制状态错误 NU1107 Xamarin.GooglePlayServices.Base 检测到版本冲突。将 Xamarin.GooglePlayServices.Base 71.1610.0 直接安装/引用到项目 XXX.Android 以解决此问题。
XXX.Android -> Microsoft.AppCenter.Push 2.5.0 -> Xamarin.Firebase.Messaging 71.1740.0 -> Xamarin.Firebase.Iid 71.1710.0 -> Xamarin.Firebase.Iid.Interop 71.1601.0 -> Xamarin.GooglePlayServices .Base (>= 71.1610.0)
XXX.Android -> Xamarin.Forms.Maps 4.3.0.947036 -> Xamarin.GooglePlayServices.Maps 60.1142.1 -> Xamarin.GooglePlayServices.Base (= 60.1142.1)。
Push 需要 71 版,而 Maps 需要 60 版。我可以知道如何解决这个问题,我很好奇为什么 Maps 不能使用更高版本?它不向后兼容吗?
谢谢你。