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)。
几个问题 -
- 如何将市场更新为Google Play 商店?
- 有什么方法可以安装 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/