Android API Google Maps V2 does not display maps on the emulator

I follow the Google Maps Android API V2 launch guide. I am using an emulator. (I know that a real device can solve the problem, but I want to try the emulator) The map fragment 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 up. " I use the latest Android and Google Maps APIs (Android 4.2.2 and Google API 17)

I am new to android and I have done many searches. Here is what I found:

  • Maps were not supported on the emulator, as Google Play services were not supported on the emulator (unless an emulation emulator was required for this). But now there is support on the official page "Note. Only Android 4.2.2 and later versions of the Google API platform API include Google Play services." at http://developer.android.com/google/play-services/setup.html

  • There was also a lot of discussion on supporting OpenGL ES 2.0 on emulators, and it was said that OpenGL ES 2.0 is not supported on emulators at all. But here is a page (from google?) That said: “As a bonus, since OpenGL ES 2.0 is now supported, 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 even run google maps on an emulator (with the latest versions of Android and the Google APIs). Or I will have to switch to a real device or "configure" the emulator.

Add: - “Use Host GPU” has been tested and this does not help. However, the error "Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and higher."

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

+6
source share
1 answer

I'm also tired of trying to get Google Maps v2 to work on the emulator. I ended up using the third Genymotion emulator emulator. Maps not only work great, but also work much faster than a regular Android emulator, even faster than a real device.

Give it a try!

+8
source

Source: https://habr.com/ru/post/947703/


All Articles