my view in xml is like this and it works not MapFragment but SupportMapFragment
<fragment
android:id="@+id/map"
android:layout_width="400dp"
android:layout_height="400dp"
android:name="com.google.android.gms.maps.SupportMapFragment"/>