title: extending ActionBarActivity causing error
body: <p>I have a class that were extending FragmentActivity and importing android library v4. Now that I want to implement Navigation Drawer in my activity, I'd like to extend ActionBarActivity. And since ActionBarActivity also implements FragmentActivity, I've been told that I could still use fragments in my class with ActionBarActivity.</p>
  
  <p>So I start working with ActionBarActivity, first by importing the v7 library. I copied the file from </p>
  
  <blockquote>
    <p>C:\Program Files\Android Developer Tools\sdk\extras\android\support\v7</p>
  </blockquote>
  
  <p>to the <code>libs</code> folder in my app folder on workspace.</p>
  
  <p>Now my Eclipse detects no errors with my class extending ActionBarActivity. However when I run it, it crashes.</p>
  
  <p>Here's some information found at my LogCat (I wonder if it coulp help at any point):</p>
  
  <pre><code>03-27 16:30:12.113: E/AndroidRuntime(8130): FATAL EXCEPTION: main
  03-27 16:30:12.113: E/AndroidRuntime(8130): Process: com.anggrian.readee, PID: 8130
  03-27 16:30:12.113: E/AndroidRuntime(8130): java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:107)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at com.anggrian.readee.MainActivity.onCreate(MainActivity.java:37)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.Activity.performCreate(Activity.java:5231)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2265)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.ActivityThread.access$800(ActivityThread.java:145)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.os.Handler.dispatchMessage(Handler.java:102)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.os.Looper.loop(Looper.java:136)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at android.app.ActivityThread.main(ActivityThread.java:5081)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at java.lang.reflect.Method.invokeNative(Native Method)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at java.lang.reflect.Method.invoke(Method.java:515)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  03-27 16:30:12.113: E/AndroidRuntime(8130):     at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>I wonder if I could get any help, thanks!</p>
  
  <p>@Raghunandan here's my styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!--
          Base application theme, dependent on API level. This theme is replaced
          by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
  
      --&gt;
      &lt;style name="AppBaseTheme" parent="android:Theme.Light"&gt;
          &lt;!--
              Theme customizations available in newer API levels can go in
          res/values-vXX/styles.xml, while customizations related to
          backward-compatibility can go here.
  
          --&gt;
      &lt;/style&gt;
  
      &lt;!-- Application theme. --&gt;
      &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
          &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt;
      &lt;/style&gt;
  
      &lt;!-- MY OWN THEME --&gt;
      &lt;style name="DarkGreyTheme" parent="@android:style/Theme.AppCompat.Light"&gt;
          &lt;item name="android:actionBarStyle"&gt;@style/DarkGreyActionBar&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DarkGreyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"&gt;
          &lt;item name="android:background"&gt;#b6b6b6&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- MY OWN THEME --&gt;
      &lt;style name="OrangeTheme" parent="@android:style/Theme.AppCompat.Light"&gt;
          &lt;item name="android:actionBarStyle"&gt;@style/OrangeActionBar&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="OrangeActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"&gt;
          &lt;item name="android:background"&gt;#ff6400&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>the AppTheme is not used in AndroidManifest.xml so just ignore them. I used to use @android:style/Theme.Holo.Light in my custom themes but since I already extending ActionBarActivity in my main class, LogCat indicates I need to use AppCompat Theme.</p>