android - 为什么我无法在 VS 2015 中安装 google play services maps (Android)?

标签 android google-maps xamarin xamarin.android nuget

每次,我都尝试在 VS 2015 中安装 google play services maps (Android)

我在组件上找到它 - 但是(不完整)并且不能使用它,检查下图..

enter image description here

我搜索了另一种使用 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/

相关文章:

android - 从相机获取输入而不显示它

android onclick按钮在Socket上写入字符串

android - 如何禁用 RecyclerView 滚动?

java - 由于带有操作栏 sherlock 的 Robotium 测试项目中的 'java.lang.IllegalAccessError',仪器运行失败

javascript - KMZ 文件会加载到 Google 地球,但不会加载到 Google map

android - 如何处理集群中的大量 ClusterItems - Android GoogleMaps V2

javascript - "The Google Maps Embed API must be used in an iframe."

android - 找不到与给定名称 Xamarin Android 匹配的资源

xamarin - (何时)Xamarin.iOS 垃圾收集器是否停止整个应用程序?

c# - 等待用户确认 Xamarin.Android 的 AlertDialog