Android 谷歌地图 api v2 - 缺少 Google Play 服务

标签 android google-maps exception

Device - HTC Wildfire
Android OS version - 2.3.3

我正在尝试在手机上运行 google map api v2 示例。

这些是 Logcat 消息 -

03-08 12:43:34.687: W/GooglePlayServicesUtil(5517): Google Play services is missing.
03-08 12:43:34.687: W/GooglePlayServicesUtil(5517): Google Play services is missing.
03-08 12:43:34.687: W/GooglePlayServicesUtil(5517): Google Play services is missing.
03-08 12:43:34.697: W/GooglePlayServicesUtil(5517): Google Play services is missing.

在应用程序上,我收到一个按钮,上面写着 - 获取 google play 服务
当我单击按钮时,我遇到了异常。 Logcat 说 -

03-08 12:43:36.847: E/AndroidRuntime(5517): FATAL EXCEPTION: main
03-08 12:43:36.847: E/AndroidRuntime(5517): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=http://play.google.com/store/apps/details?id=com.google.android.gms flg=0x80000 pkg=com.android.vending }
03-08 12:43:36.847: E/AndroidRuntime(5517):     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1569)
03-08 12:43:36.847: E/AndroidRuntime(5517):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1539)
03-08 12:43:36.847: E/AndroidRuntime(5517):     at android.app.Activity.startActivityForResult(Activity.java:2974)
03-08 12:43:36.847: E/AndroidRuntime(5517):     at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:817)

根据上述消息,我得知我的手机上缺少 Google Play 服务。
我的手机有 Market 应用程序(不是 Google Play)。

几个问题 -

  1. 如何将市场更新为Google Play 商店
  2. 有什么方法可以安装 Google Play 服务吗? (注意:通过搜索 Google Play 商店看不到 Google Play 服务 APK。当客户端库检测到设备缺少或不兼容的 Google Play 服务 APK 时,会提供指向 Google Play 商店的深层链接。)

我将不胜感激任何帮助。

最佳答案

我去了

Settings -> Software updates -> Check now


我的手机下载并安装了一些更新。
这次当我点击

Get Google Play Services (In the application )

Market 自动更新为 Google Play

map 正在正确显示。

关于Android 谷歌地图 api v2 - 缺少 Google Play 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15288885/

相关文章:

javascript - 有 Angular ,谷歌地图。 map 未加载模板

java - 如何在谷歌地图上显示带有坐标的数组列表?

java - 如何在android中创建动态水平表格行?

android - 如何在 Google Play 商店为 alpha/beta 测试人员启用自动更新

android - 以编程方式创建具有特定样式的 Android View

java - 未处理的异常类型 Java InstantiationException

javascript - 超出 ResizeObserver 循环限制 - 停止异常

android - 如何检测用户的键盘是否为 Swype?

ios - 无法使用 Xcode 7 和 GoogleMaps 使用 Podfile 将 IOS 应用程序上传到 iTunes

java - 默认异常处理程序显式处理异常的首选方法是什么?