title: AppCompat and Fragment not working
body: <pre><code>02-19 11:49:17.369: E/AndroidRuntime(4209): java.lang.NoClassDefFoundError: com.slidingmenus.fragments.HomeFragment
  02-19 11:49:17.369: E/AndroidRuntime(4209):     at com.slidingmenus.MainActivity.displayCategoryView(MainActivity.java:242)
  02-19 11:49:17.369: E/AndroidRuntime(4209):     at com.slidingmenus.MainActivity.onCreate(MainActivity.java:121)
  </code></pre>
  
  <p>Tried each and every steps suggested in stack overflow but they didn't help.</p>
  
  <p>It works without an error in 4.0+ but in 2.3.x devices its giving java.lang.NoClassDefFoundError in </p>
  
  <pre><code>line 242: fragment = new HomeFragment();
  </code></pre>
  
  <p>My imports from fragments are:</p>
  
  <pre><code>import android.app.Fragment;
  import android.app.FragmentManager;
  </code></pre>
  
  <p>and I'm using:</p>
  
  <pre><code>FragmentManager fragmentManager = getFragmentManager();
  fragmentManager.beginTransaction().replace(R.id.frame_container, fragment).commit();
  </code></pre>
  
  <p>Here is my home fragment:</p>
  
  <pre><code>import android.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;   
  
  public class HomeFragment extends Fragment {        
     public HomeFragment(){}
  
     @Override
     public View onCreateView(LayoutInflater inflater, ViewGroup container,
             Bundle savedInstanceState) {
  
             View rootView = inflater.inflate(R.layout.layout_main_fragment,container, false);
  
             return rootView;
      }
   }
  </code></pre>
  
  <p>Spent whole morning already trying to solve this. still no luck. Any help is highly appreciated.</p>
  
  <p>Thanks</p>