title: Unable to start activity ComponentInfo: Binary XML file line #6: Error inflating class fragment
body: <p>Trying to get into a new activity that has Google Maps integrated to it, I get an error from the title. The said activity class:</p>
  
  <pre><code>package com.ict.edu.rs.imenik;
  import com.google.android.gms.maps.GoogleMap;
  import com.google.android.gms.maps.GoogleMap.OnMapLongClickListener;
  import com.google.android.gms.maps.SupportMapFragment;
  import com.google.android.gms.maps.model.LatLng;
  
  import android.app.AlertDialog;
  import android.content.DialogInterface;
  import android.support.v4.app.Fragment;
  import android.support.v4.app.FragmentActivity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.widget.Toast;
  
  public class MapViewActivity extends FragmentActivity implements
      OnMapLongClickListener {
  
  private GoogleMap googleMap;
  private String lat, lng;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.map_view);
      if (googleMap == null) {
  
          googleMap = ((SupportMapFragment) getSupportFragmentManager()
                  .findFragmentById(R.id.map)).getMap();
  
          if (googleMap == null) {
              Toast.makeText(getApplicationContext(), "Mapa nije kreirana!",
                      Toast.LENGTH_SHORT).show();
          }
      }
  
      googleMap.getUiSettings().setMyLocationButtonEnabled(true);
      googleMap.setMyLocationEnabled(true);
      googleMap.setOnMapLongClickListener(this);
  
  }
  
  @Override
  public void onMapLongClick(final LatLng arg0) {
      AlertDialog.Builder builder = new AlertDialog.Builder(
              MapViewActivity.this);
      builder.setCancelable(true);
      builder.setTitle("Alert");
      builder.setMessage("Sacuvaj lokaciju?");
      builder.setInverseBackgroundForced(true);
      builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {
              lat = "" + arg0.latitude;
              lng = "" + arg0.longitude;
              dialog.dismiss();
              Intent returnIntent = new Intent();
              returnIntent.putExtra("lat", lat);
              returnIntent.putExtra("lng", lng);
              setResult(RESULT_OK, returnIntent);
              finish();
          }
      });
  
      builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {
              dialog.dismiss();
          }
      });
  
      AlertDialog alert = builder.create();
      alert.show();
  }
  }
  </code></pre>
  
  <p>And the corresponding XML file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;fragment
      android:id="@+id/map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      class="com.google.android.gms.maps.SupportMapFragment"
      android:scrollingCache="false" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Here's manifest as well</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.ict.edu.rs.imenik"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="21" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;meta-data
          android:name="com.google.android.gms.version"
          android:value="5089000" /&gt;
      &lt;meta-data
          android:name="com.google.android.maps.v2.API_KEY"
          android:value="AIzaSyD1-NOAbX37THopQ9IKWV84dbTdysqGndc" /&gt;
  
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name="com.ict.edu.rs.imenik.NoviKontakt" /&gt;
      &lt;activity android:name="com.ict.edu.rs.imenik.IzmeniKontakt" /&gt;
      &lt;activity android:name="com.ict.edu.rs.imenik.MapViewActivity" /&gt;
      &lt;activity android:name="com.ict.edu.rs.imenik.RezultatPretrage" /&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>What am I dealing with here?</p>