Google Maps Android API V2 not show maps on Emulator
NickName:Jian Ask DateTime:2013-06-20T10:57:41

Google Maps Android API V2 not show maps on Emulator

I am following the tutorial to run Google Maps Android API V2. I am using an emulator. (I know a real device may solve the problem, but I do want to try emulator) The mapfragment shows a pale yellow background with two zoom buttons on it, and I got an error in LogCat that "Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above". I am using the most recent Android and Google Maps APIs (Android 4.2.2 and Google APIs 17)

I am a newbie to android and I've done a lot of searches. Here is what I have found:

  1. Maps were not supported on emulator, since Google Play services were not supported on emulator (unless tweaking emulator to work around this). But there is support now according to official page "Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services." on http://developer.android.com/google/play-services/setup.html

  2. there were also a lot of discussions about OpenGL ES 2.0 support on emulators, and it was said that OpenGL ES 2.0 was not supported on emulators at all. But here is a page (from google?) saying "As a bonus, since we’re now supporting OpenGL ES 2.0, your OpenGL games can now run inside the emulator" from http://android-developers.blogspot.ca/2012/04/faster-emulator-with-better-hardware.html. So confused!

I want to know if I can run google maps on emulator at all (with the newest versions of Android and Google APIs). Or I will have to switch to a real device or "tweak" the emulator.

Add: -- "use Host GPU" had been checked, and it doesn't help. Still the error "Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above".

-- Google announced emulator support for Maps android API v2 in May 2013. (I can't post the link due to user restriction but you can find it by going to the release page for Google Maps android API v2). But it doesn't seem to work.

UPDATE

The corresponding bug in Google issue tracker (https://issuetracker.google.com/issues/35822258) was solved some time ago.

Now you can use Google Maps Android API in emulator and create Virtual devices with Play services as described in this answer:

https://stackoverflow.com/a/46246782/5140781

Copyright Notice:Content Author:「Jian」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/17204578/google-maps-android-api-v2-not-show-maps-on-emulator

More about “Google Maps Android API V2 not show maps on Emulator” related questions

Google Maps Android API V2 not show maps on Emulator

I am following the tutorial to run Google Maps Android API V2. I am using an emulator. (I know a real device may solve the problem, but I do want to try emulator) The mapfragment shows a pale yellow

Show Detail

Google maps v2 on android emulator

I am facing an issue right now so i appeal to all you awesome android developers to help me out with this issue. There is a specific need in my application to run Google maps v2 on an emulator. Hav...

Show Detail

Android: Is it possible to use Google Maps API on emulator?

I'm trying to use Google Maps API on emulator but I'm struggling with it. I already set up the API key (I set the package name and SHA-1 on Google console as well) but this error happens. Here is

Show Detail

Running Google Maps v2 on the Android emulator

I've tried to implement Google Maps v2 in my Android application, but unfortunately instead of maps I get this message: Is it possible to run these maps on the Android emulator (Platform 4.2)?

Show Detail

Running Google Maps v2 on the Android emulator

I've tried to implement Google Maps v2 in my Android application, but unfortunately instead of maps I get this message: Is it possible to run these maps on the Android emulator (Platform 4.2)?

Show Detail

Google Maps Emulator

I'm having issue with Android Studio and getting Google maps to work on my emulator. I've set up an emulator with Play installed on it. The map activity is viewable but the map itself does not ren...

Show Detail

Is it possible to show/hide Markers in Android Google maps api v2?

I would like (in my Android app using Google maps api v2) to hide or show markers on my GoogleMap object according to a category, just like in the google maps web api, for example: I have a Google...

Show Detail

How to test Google Maps v2 on Android emulator API level 17?

I am building an Android app that has Google Maps v2. The map requires the Google Play services. I want to test the app in the emulator running API level 17 (Android 4.2.2). I have downloaded the ...

Show Detail

Google Maps Api v2 Android Error

only Android 5.0 work. Error by Android 5.0 lower I have installed all SDK package. Manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.an

Show Detail

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 ab...

Show Detail