Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Google Map API V2 on Android emulator

I've tried to implement Google Maps v2 in my Android Application, but unfortunately instead of Maps I can see this message:

This app won't run without Google Play Services, which are missing from your phone along with button "Get Google Play Services".

Before tell me, is this possible to run Google Maps on Android emulator?

like image 918
Nilesh Sasane Avatar asked Aug 27 '13 07:08

Nilesh Sasane


People also ask

How do I enable Google Maps API v2?

Click on the “APIs & auth” menu on the left, and from the submenu select APIs. From the list of APIs that appear, scroll down and ensure that Google Maps Android API v2 is set to “On”.

Can I use Google Play on emulator?

Yes, you can enable/use Play Store on Android Emulator(AVD): Before that you have to set up some prerequisites: Start Android SDK Manager and select Google Play Intel x86 Atom System Image (Recomended: because it will work comparatively faster) of your required android version (For Example: Android 7.1. 1 or API 25)

Is gmap API free?

You won't be charged until your usage exceeds $200 in a month. Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API or SDKs is not applied against your $200 monthly credit).


3 Answers

You should use an emulator based on SDK version 4.2.2 or higher. Look here for details:

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

Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.

like image 97
validcat Avatar answered Nov 12 '22 22:11

validcat


Try Genymotion emulator....It supports location based services.

like image 36
Rishabh Srivastava Avatar answered Nov 12 '22 22:11

Rishabh Srivastava


you can select as the target api as google api.It support maps I have also tried it & it successfully running.

like image 2
GautamK11 Avatar answered Nov 12 '22 22:11

GautamK11