谷歌播放服务的Andr​​oid模拟器4.2.2或更高版本。 "谷歌地图API演示将无法运行,除非你更新谷歌播放服务]; [英] Google Play Services on Android Emulator 4.2.2 or higher. "Google Maps API demos won't run unless you update Google Play Services"

查看:235
本文介绍了谷歌播放服务的Andr​​oid模拟器4.2.2或更高版本。 "谷歌地图API演示将无法运行,除非你更新谷歌播放服务];的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是一些相关的线程,但这些解决方案不工作:

Here are some related threads, but these solutions are not working:

1 <一个href="http://stackoverflow.com/questions/14040185/running-google-maps-v2-on-the-android-emulator">Running谷歌地图V2在Android模拟器

2 <一个href="http://stackoverflow.com/questions/18459338/how-to-run-google-map-api-v2-on-android-emulator">How在Android模拟器上运行谷歌地图API V2

我甚至跟着从谷歌开发者在这个问题上的文档。仍然一无所获。

I even followed the documentation from Google Developer's on this issue. Still nothing.

要使用谷歌播放服务API开发的应用程序,你需要设置项目与谷歌播放服务SDK。如果你还没有安装谷歌播放服务SDK还没有,去得到它现在指导下,以添加SDK软件包。

To develop an app using the Google Play services APIs, you need to set up your project with the Google Play services SDK. If you haven't installed the Google Play services SDK yet, go get it now by following the guide to Adding SDK Packages.

要在使用谷歌播放服务SDK测试您的应用程序,您必须使用:

To test your app when using the Google Play services SDK, you must use either:

      
  • 是运行Android 2.3或更高版本,其中包括谷歌Play商店兼容的Andr​​oid设备。
  •   
  • 在Android模拟器与AVD,运行基于Android 4.2.2或更高版本的谷歌API的平台。
  •   

我现在用的是仿真器的Andr​​oid 5.1.1这是比Android 4.2.2高,但是当我运行示例$ C $下一个地图,我坐上模拟器一个消息,说:

I am using the emulator Android 5.1.1 which is higher than Android 4.2.2, but when I run sample code for a map, I get a message on the emulator that says:

谷歌地图API演示将无法运行,除非你更新谷歌播放服务

"Google Maps API demos won't run unless you update Google Play Services"

这给了我一个选项更新,但是当我点击它,我得到这个消息我模拟器的屏幕上:

It gives me an option to update, but when I click on it, I get this message on the screen of my emulator:

Unfortunatley,谷歌地图API演示已经停止了

"Unfortunatley, Google Maps API Demos has stopped"

任何人都可以阐明这个问题一些启示?我可以设置一个真实的设备上测试,但我宁愿使用Android模拟器,因为它是如此之快。

Can anyone shed some light on this issue? I can set this up on a real device and test it, but I would much rather use an android emulator because it is so much faster.

推荐答案

请确保您使用的是谷歌的API(谷歌公司)作为模拟器的目标。如果这个不解决这个问题,你可以google最新的谷歌播放服务的apk 和超过 ADB安装

Make sure you are using the Google APIs (Google Inc.) as your Emulator's target. and if this doesn't solve the problem, you can google the newest Google Play Services' apk and install it over adb install.

= - = - =编辑= - = - =
好像有一个关于对谷歌Play业务的API级别22仿真器的bug。我提出一个bug吧。
<一href="https://$c$c.google.com/p/android/issues/detail?id=176348&thanks=176348&ts=1433887196">https://$c$c.google.com/p/android/issues/detail?id=176348&thanks=176348&ts=1433887196

=-=-= edit =-=-=
It seems like there is a bug regarding to the Google Play services on the API level 22 emulator. I filed a bug for it.
https://code.google.com/p/android/issues/detail?id=176348&thanks=176348&ts=1433887196

谷歌Play业务似乎是罚款21 API和API MNC

Google Play services seems to be fine on API 21, and API MNC

这篇关于谷歌播放服务的Andr​​oid模拟器4.2.2或更高版本。 &QUOT;谷歌地图API演示将无法运行,除非你更新谷歌播放服务];的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆