Google Maps Android API v2 only supports devices w

2020-02-11 03:03发布

I'm trying to run Google Map's sample project on emulator. Now I have an error:

Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above

How can I resolve that problem?

3条回答
成全新的幸福
2楼-- · 2020-02-11 03:21

I had the same issue running with an emulator. I fixed by editing my emulator in AVD Manager, at Emulator Options checking the box for Use Host GPU.

查看更多
冷血范
3楼-- · 2020-02-11 03:36

You need to add feature required for OpenGL ES 2.0. for Maps V2 To work with Google Maps , just add the following code in your project's AndroidManifest.xml file before application tag:

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

May this will help you :)

查看更多
Emotional °昔
4楼-- · 2020-02-11 03:42

Google Maps API v2 has a bug. See here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5440

As linked by Tony in comments above there may be a workaround if you can get hold of and replace the appropriate apk files on the device. Or you can just wait ... ;)

查看更多
登录 后发表回答