Google Play Services missing on Android 2.2 emulator while using Google Maps API v2

我的梦境 提交于 2019-12-05 13:40:37

"To test your app when using the Google Play services SDK, you must use The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher."

From http://developer.android.com/google/play-services/setup.html

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

A compatible Android device that runs Android 2.3 or higher and includes Google Play Store. The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.

Please check the link http://developer.android.com/google/play-services/setup.html

there is clearly mentioned that you must provide a physical development device on which you can run and debug your app.

Note: Google Play services is not supported on the Android emulator — to develop using the APIs, you need to provide a development device such as an Android phone or tablet.

As of now Google Maps V2 are not going to be displayed on Emulators. They will be running only on Real Time Devices which have play store app installed. Test the Application that having Google Maps V2 only on Real time device and not Emulators. There is no other alternative also as of now.

GrIsHu

Google Maps V2 isn't meant to work on an emulator since it is bundled with the Google Play Services.

If you're still wondering how to make it work on the emulator, you might want to give this blog post and SO answer a read. As pointed out by CommonsWare, the tweaks listed in these article boil down to pirating software. If you're really thinking about developing on Android, you might wanna consider buying a device.

I've faced this problem before. The reason is your google play is work on your emulator. Try this to install google play to your emulator

You can check this blog post I wrote on how to run Google Maps API V2 on the emulator:

Emulator speed-up and Google Map API V2

It is an information that I found here on SO in one of the posts.

Start the SDK manager and install the Google API images (are currently 2). Then create an AVD based on either of them. You should be good to go :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!