Android Google Maps API “Error inflating class fragment” [duplicate]

放肆的年华 提交于 2019-11-29 17:43:43
Raghunandan

Check this

A required meta-data tag in your app's AndroidManifest.xml does not exist.

Apart from that

<uses-sdk
    android:minSdkVersion="8"

So change

 android:name="com.google.android.gms.maps.MapFragment"

to

 android:name="com.google.android.gms.maps.SupportMapFragment"

Also remove this

<permission
android:name="br.com.lineapp.tofind.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>

and this

<uses-permission  android:name="br.com.lineapp.tofind.permission.MAPS_RECEIVE"/>

not required

Reference:

https://developers.google.com/maps/documentation/android/start

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