title: Unable to instantiate android.gms.maps.SupportMapFragment
body: <p>I have a view with a facebook style side bar navigation. On the main view I want to display my map. I have followed Google's tutorial exactly! But I keep running into the error Unable to instantiate android.gms.maps.SupportMapFragment.</p>
  
  <p>I did manage to run this on a plain project but when I merge it with my main project this error pops up:</p>
  
  <pre><code>07-25 13:27:53.778: E/AndroidRuntime(24841): 
  Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.SupportMapFragment:
  make sure class name exists, is public, and has an empty constructor that is public
  </code></pre>
  
  <p>I tried the answers posted below but the problem persists.  </p>
  
  <p><a href="https://stackoverflow.com/questions/14082851/error-inflating-class-fragment-with-google-map">&quot;Error inflating class fragment&quot; with google map</a></p>
  
  <p>and also this one:</p>
  
  <p><a href="https://stackoverflow.com/questions/16572020/error-java-lang-classnotfoundexception-com-google-android-gms-maps-mapfragment">Error java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment in Google Map V2</a></p>
  
  <p>The reference to the google sdk in project properties is also set. 
  Here is the class:</p>
  
  <pre><code>    public class SlideAnimationThenCallLayout extends FragmentActivity implements AnimationListener {
  
  View menu;
  View app;
  
  boolean menuOut = false;
  AnimParams animParams = new AnimParams();
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
          setContentView(R.layout.activity_slide_animation_then_call_layout);
  
  
      LinearLayout linearLayout = (LinearLayout) findViewById(R.id.menu);
      linearLayout.setOnTouchListener(new OnSwipeTouchListener(){
  
          public void onSwipeRight() {
              swipeAnimation();
  
          }
  
      });
      RelativeLayout listview3 = (RelativeLayout) findViewById(R.id.relativeLayout1);
      listview3.setOnTouchListener(new OnSwipeTouchListener(){
  
          public void onSwipeRight() {
              swipeAnimation();
  
          }
          public void onSwipeLeft() {
              swipeAnimation();
  
          }
      });
      menu = findViewById(R.id.menu);
      app = findViewById(R.id.relativeLayout1);
  
  }
  </code></pre>
  
  <p>The xml file is:</p>
  
  <pre><code>    &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/frame_layout1"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  
  &lt;LinearLayout
      android:id="@+id/menu"
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
      &lt;ListView
          android:id="@+id/listView3"
          android:layout_width="match_parent"
          android:layout_height="100dp"
          android:background="@drawable/action_eating"&gt;
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;RelativeLayout
      android:id="@+id/relativeLayout1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/android_homescreen"&gt;
  
      &lt;fragment
      android:id="@+id/map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      class="com.google.android.gms.maps.SupportMapFragment" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>I don't know what is wrong here now. Any Help would be greatly appreciated.</p>