title: Google Maps V2 'the application has stopped unexpectedly' on android SDK v9
body: <p>I am using my boss's phone to test an app we have developed on iOS and moving over to android.</p>
  
  <p>I have followed <a href="http://mobile.tutsplus.com/tutorials/android/android-sdk-working-with-google-maps-application-setup/" rel="nofollow">this</a> tutorial which when running on the phone gives the error mentioned in the title. I have read that SDKs below 10 do not support maps is that right? Pretty unsure what to do from here. Code:</p>
  
  <p>I have 3 tabs which I load in as fragments, and the fragment in question is:</p>
  
  <p>Note: All imports are correct</p>
  
  <pre><code>public class EventFragment extends Fragment {
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
        // Inflate the layout for this fragment
        View V = inflater.inflate(R.layout.event_layout, container, false);
  
          return V;
      }
  }
  </code></pre>
  
  <p>In the view xml file:</p>
  
  <pre><code>&lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:map="http://schemas.android.com/apk/res-auto"
      android:id="@+id/the_map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:name="com.google.android.gms.maps.MapFragment"
      map:cameraTilt="45"
      map:cameraZoom="14"
      /&gt;
  </code></pre>
  
  <p>Everything is in the manifest that should be. When I remove the  it runs fine. Is there a fix for this sort of thing?</p>
  
  <p>Edit: </p>
  
  <p>Logcat error:</p>
  
  <pre><code>06-28 11:25:51.230: E/AndroidRuntime(3405): FATAL EXCEPTION: main
  06-28 11:25:51.230: E/AndroidRuntime(3405): android.view.InflateException: Binary XML file line #1: Error inflating class fragment
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:587)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at co.uk.dwdks.kendalmintfest.KendalInfoFragment.onCreateView(KendalInfoFragment.java:16)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:911)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:429)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.os.Handler.handleCallback(Handler.java:587)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.os.Handler.dispatchMessage(Handler.java:92)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.os.Looper.loop(Looper.java:143)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.app.ActivityThread.main(ActivityThread.java:4196)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at java.lang.reflect.Method.invokeNative(Native Method)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at java.lang.reflect.Method.invoke(Method.java:507)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at dalvik.system.NativeStart.main(Native Method)
  06-28 11:25:51.230: E/AndroidRuntime(3405): Caused by: android.support.v4.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
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.Fragment.instantiate(Fragment.java:401)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.Fragment.instantiate(Fragment.java:369)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:272)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     ... 18 more
  06-28 11:25:51.230: E/AndroidRuntime(3405): Caused by: java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment in loader dalvik.system.PathClassLoader[/data/app/co.uk.dwdks.kendalmintfest-2.apk]
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     at android.support.v4.app.Fragment.instantiate(Fragment.java:391)
  06-28 11:25:51.230: E/AndroidRuntime(3405):     ... 21 more
  </code></pre>