Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Map not getting in emulator android api v2

I want to install my map application in emulator it installed fine but not getting map on it,showing error in log cat like Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above, but I am Just seeing zoom buttons and all other UI. What i have to do to get map in emulator in android API v2.

I followed this link: Running Google Maps v2 on the Android emulator

like image 397
Shailendra Madda Avatar asked Sep 30 '13 12:09

Shailendra Madda


People also ask

Where do I put map API key Android?

Go to the Google Maps Platform > Credentials page. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key.


1 Answers

I got finally map in my emulator. I followed these steps to achieve it.

  1. Create avd and start emulator

  2. Go to platform tools path present in Android SDK and put these apk's in it.

    • Install com.android.vending.apk (Google Play Store, v.3.10.9)
    • Install com.google.android.gms.apk (Google Play Service, v.2.0.12)
  3. Install these apk's one by one by going to platform tools path by using command prompt(shift+Right click-->open command window here).Follow these commands

    • adb devices
    • adb install com.android.vending.apk
    • adb install com.google.android.gms.apk
  4. Import google-play-services_lib project which is present at project location and add it to your project.(path of lib project:D:\Softwares\android-sdk\extras\google\google_play_services\libproject)
  5. Restart emulator and clean your project and run it through emulator.

That's it. :)

enter image description here

like image 115
Shailendra Madda Avatar answered Sep 25 '22 07:09

Shailendra Madda