2

设备- HTC Wildfire
Android 操作系统版本- 2.3.3

我正在尝试在手机上运行 google maps 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.

在应用程序上,我得到一个按钮,上面写着 -获取谷歌播放服务
当我点击按钮时,我得到了一个例外。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 服务。
我的手机有市场应用程序(不是谷歌播放)。

几个问题-

  1. 如何将市场更新为google play 商店
  2. 有没有办法可以安装谷歌播放服务?(注意:通过搜索 Google Play 商店,无法看到 Google Play 服务 APK。当客户端库检测到设备缺少或不兼容的 Google Play 服务 APK 时,它会提供到 Google Play 商店的深层链接。)

我将不胜感激。

4

3 回答 3

1

我去了

设置 -> 软件更新 -> 立即检查


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

获取 Google Play 服务(在应用程序中)

市场自动更新到Google Play

地图正在正确显示。

于 2013-03-08T08:51:25.093 回答
1

If you're writing an application that uses Google Maps API and requires your customers' phones to have it, be sure to handle the case that you find yourself in now. Many Gingerbread phones don't ship with Google Play Services, and the error message that is displayed by default has the wrong link in it. This is a known bug, which has a discussion on Google Code. You should check for installation on app startup, and safely send the user to the right place to download if needed.

于 2013-09-19T01:52:04.510 回答
0

I got a HTC Evo 4G (the 2010 IO conference giveaway for Sprint U.S deployed Wimax networks) and while I never used it in a real Wimax network (not deployed in Sweden) it can otherwise come handy as a 2.3.3 test phone.

It updated to 2.3.3 the other day when I picked it up out of a forgotten drawer. The Market app that should automagically be replaced by the Google Play app still remains. I need Play so that the Google Maps v2 dependencies shipped inside Google Play come available to my app that use Google Maps v2. I read clearing the Market app cache would be good, but no difference.

Any hints ?

于 2013-07-25T15:50:45.653 回答