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

烈酒焚心 提交于 2019-11-28 00:19:31

问题


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?


回答1:


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.




回答2:


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 ... ;)




回答3:


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 :)



来源:https://stackoverflow.com/questions/17378942/google-maps-android-api-v2-only-supports-devices-with-opengl-es-2-0-and-above

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!