首页 > 解决方案 > 当我将 Googleplayservices v71 与 Xamarin Forms Maps v4.3 一起使用时出现异常

问题描述

当我想显示谷歌地图时,我得到:

Java.Lang.NoClassDefFoundError:'解析失败:Lcom/google/android/gms/dynamic/zza;'

在我安装之前它工作正常:

xamarin.GooglePlayServices.Base 71.1610.0 和 xamarin.GooglePlayServices.Basement 71.1620.0

我需要这两个插件,因为 Com.OneSignal 需要它们。

当我卸载 Com.Onesignal 时它也不起作用,但是当我再次卸载 xamarin.GooglePlayServices.Base 和 xamarin.GooglePlayServices.Basement 时,我没有再次收到异常并显示地图。但是没有通知:(

我使用 Xamarin Forms 4.3.0.947036 并使用 shell 项目。

标签: google-mapsxamarinxamarin.formsgoogle-play-servicesonesignal

解决方案


推荐阅读