Minimal Android API level to run Google Maps Android API v2

微笑、不失礼 提交于 2019-11-28 13:22:56

The Maps API are bundled with Google Play services and are compatible with Android 2.2 and higher. All devices with Android 8 API level support OpenGL 2.0, so devices with Android 2.1 version can't support Google Maps v2. You can check in the Google Documentation.

It'a API Level 8 (Froyo), because of the Play Services dependency.

Also take care that if you are using API levels 8 - 10 you need to use SupportMapFragment with the Android Support Library: http://developer.android.com/tools/extras/support-library.html , because fragments were only added in API level 11.

i guess you are trying in Android Emulator,

or,

you are trying with Tablet with don't have GPS Feature, Try with GPS enabled device, it should work properly

As beni said, it works with Android 2.2 and higher version. But you need the android support library for 2.x versions seeing that it use fragments...

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