title: Error inflating class fragment (using google maps android api v2)
body: <p>I am having trouble getting this example working from the developers site and am stuck (probably with something simple) here is my xml layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity" &gt;
  
   &lt;fragment 
          android:id="@+id/map"
          class="com.google.android.gms.maps.MapFragment"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>my main activity </p>
  
  <pre><code>    package PackageName.AndroidMapsTest;
      import android.os.Bundle;
      import android.app.Activity;
  
      public class MainActivity extends Activity {
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.map_test_1);
          }
      }
  </code></pre>
  
  <p>and my manifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="Pakagename.AndroidMapsTest"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  
      &lt;!--
       The following two permissions are not required to use
       Google Maps Android API v2, but are recommended.
      --&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
      &lt;permission
          android:name="Pakagename.AndroidMapsTest.permission.MAPS_RECIVE"
          android:protectionLevel="signature" /&gt;
          &lt;uses-permission android:name="Pakagename.AndroidMapsTest.permission.MAPS_RECIVE"/&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="12"
          android:targetSdkVersion="17" /&gt;
  
      &lt;uses-feature
          android:glEsVersion="0x00020000"
          android:required="true" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
  
          &lt;activity
              android:name="edu.lewisu.cs.shanejmiller.AndroidMapsTest.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;meta-data
              android:name="com.google.android.maps.v2.API_KEY"
              android:value="my_api_key" /&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>And the error that i am getting from the log cat is </p>
  
  <pre><code>java.lang.RunTimeException: Unable to start activity ComponentInfo{packagename.AndroidMapsTest/packagename.AndroidMapsTest.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class fragment 
  </code></pre>
  
  <p>I have been stuck for a wile now and would appreciate any help. Thanks in advance</p>
  
  <p>log trace </p>
  
  <pre><code>07-05 22:00:55.633: E/AndroidRuntime(1799): FATAL EXCEPTION: main
  07-05 22:00:55.633: E/AndroidRuntime(1799): java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.lewisu.cs.shanejmiller.AndroidMapsTest/edu.lewisu.cs.shanejmiller.AndroidMapsTest.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.os.Handler.dispatchMessage(Handler.java:99)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.os.Looper.loop(Looper.java:137)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.ActivityThread.main(ActivityThread.java:5041)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at java.lang.reflect.Method.invokeNative(Native Method)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at java.lang.reflect.Method.invoke(Method.java:511)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at dalvik.system.NativeStart.main(Native Method)
  07-05 22:00:55.633: E/AndroidRuntime(1799): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Activity.setContentView(Activity.java:1881)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at edu.lewisu.cs.shanejmiller.AndroidMapsTest.MainActivity.onCreate(MainActivity.java:15)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Activity.performCreate(Activity.java:5104)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     ... 11 more
  07-05 22:00:55.633: E/AndroidRuntime(1799): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.MapFragment: make sure class name exists, is public, and has an empty constructor that is public
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Fragment.instantiate(Fragment.java:592)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Fragment.instantiate(Fragment.java:560)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Activity.onCreateView(Activity.java:4709)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     ... 21 more
  07-05 22:00:55.633: E/AndroidRuntime(1799): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.maps.MapFragment" on path: /data/app/edu.lewisu.cs.shanejmiller.AndroidMapsTest-2.apk
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     at android.app.Fragment.instantiate(Fragment.java:582)
  07-05 22:00:55.633: E/AndroidRuntime(1799):     ... 24 more
  </code></pre>