“Error inflating class fragment” with google map

You are extending FragmentActivity, indicating that you are trying to use the Android Support package backport of fragments. However, your <fragment> element refers to MapFragment, which is for the native API Level 11 edition of fragments.

Replace MapFragment with SupportMapFragment, and that should clear up this specific crash.

Leave a Comment