title: Unable to instantiate fragment com.google.android.gms.MapFragment
body: <p>I know this question is asked so many times. but not working in my case tried so many solution. so help please</p>
  
  <p>my mainActivity extends Activity within onCreate map generates this way.</p>
  
  <pre><code>private void initilizeMap() {
      if (googleMap == null) {
          googleMap = ((MapFragment) getFragmentManager()
                  .findFragmentById(R.id.map)).getMap();
  
          // check if map is created successfully or not
          if (googleMap == null) {
              Toast.makeText(getApplicationContext(),
                      "Sorry! unable to create maps", Toast.LENGTH_SHORT)
                      .show();
          }
      }
  }
  </code></pre>
  
  <p>and xml view is </p>
  
  <pre><code>    &lt;fragment
      android:id="@+id/map"
      android:name="com.google.android.gms.maps.MapFragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  </code></pre>
  
  <p>support:</p>
  
  <pre><code>    &lt;uses-sdk
      android:minSdkVersion="14"
      android:targetSdkVersion="21" /&gt;
  </code></pre>
  
  <p>error em getting:</p>
  
  <pre><code>    03-01 13:29:20.089: E/AndroidRuntime(26406): FATAL EXCEPTION: main
  03-01 13:29:20.089: E/AndroidRuntime(26406): Process: com.commteldigital.cinecorn.activity, PID: 26406
  03-01 13:29:20.089: E/AndroidRuntime(26406): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.commteldigital.cinecorn.activity/com.commteldigital.cmovies.activity.LocationActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.ActivityThread.access$800(ActivityThread.java:151)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.os.Handler.dispatchMessage(Handler.java:110)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.os.Looper.loop(Looper.java:193)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.ActivityThread.main(ActivityThread.java:5299)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at java.lang.reflect.Method.invokeNative(Native Method)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at java.lang.reflect.Method.invoke(Method.java:515)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at dalvik.system.NativeStart.main(Native Method)
  03-01 13:29:20.089: E/AndroidRuntime(26406): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:305)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Activity.setContentView(Activity.java:1944)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at com.commteldigital.cmovies.activity.LocationActivity.onCreate(LocationActivity.java:27)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Activity.performCreate(Activity.java:5264)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    ... 11 more
  03-01 13:29:20.089: E/AndroidRuntime(26406): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.MapFragment: make sure class name exists, is public, and has an empty constructor that is public
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Fragment.instantiate(Fragment.java:597)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Fragment.instantiate(Fragment.java:561)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Activity.onCreateView(Activity.java:4811)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:689)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    ... 21 more
  03-01 13:29:20.089: E/AndroidRuntime(26406): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.MapFragment" on path: DexPathList[[zip file "/data/app/com.commteldigital.cinecorn.activity-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.commteldigital.cinecorn.activity-2, /vendor/lib, /system/lib]]
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    at android.app.Fragment.instantiate(Fragment.java:583)
  03-01 13:29:20.089: E/AndroidRuntime(26406):    ... 24 more
  </code></pre>
  
  <p>well. have imported google play lib from extras folder. why the class is unavailable. thanks in advance </p>