每次,我都尝试在 VS 2015 中安装 google play services maps (Android)
我在组件上找到它 - 但是(不完整)并且不能使用它,检查下图..
我搜索了另一种使用 nuget 安装它的解决方案,但我总是收到此错误消息
Severity Code Description Project File Line Suppression State Error Could not install package 'Xamarin.GooglePlayServices.Maps 42.1001.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
如何让它发挥作用?
最佳答案
更新您的 Xamarin 安装/项目以使用 MonoAndroid 7.0
,因为最新的“Xamarin.GooglePlayServices.Maps”包需要它。根据错误消息,您目前拥有 MonoAndroid 5.0
已更新
要更新安装,请在 Visual Studio 中转到菜单 Tools -> Options
,然后转到 Xamarin -> Other -> Check now
,然后按照说明进行操作。
之后,检查您的 android 项目:右键单击它 -> 然后“属性”,然后转到“应用程序”选项卡,在“目标 android 版本”上您应该已经安装了 SDK 和 7.0。 (我总是使用最新版本)。要检查安装的 xamarin 版本,请转到菜单“帮助 -> 关于 Microsoft Visual Studio”,然后在那里搜索 Xamarin 组件...应该显示 7.0
关于android - 为什么我无法在 VS 2015 中安装 google play services maps (Android)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42377641/