title: Upgrading to SDK 21 - Error inflating class android.support.v7.internal.widget.ActionBarContainer
body: <p>I'm trying to upgrade my app from API19 to API21</p>
  
  <p>The main changes I've made to the gradle properties are:</p>
  
  <pre><code>compileSdkVersion 21
  buildToolsVersion "21.0.2"
  
  minSdkVersion 8
  targetSdkVersion 21
  
  
  compile 'com.android.support:appcompat-v7:21.0.0'
  </code></pre>
  
  <p>The app builds ok, but I always get the following error:</p>
  
  <pre><code>10-22 23:10:38.867    7972-8058/com.example.android.demo E/ACRA? com.example.android.demo fatal error : Unable to start activity ComponentInfo{com.example.android.demo/com.example.android.demo.MainActivity2}: android.view.InflateException: Binary XML file line #27: Error inflating class android.support.v7.internal.widget.ActionBarContainer
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.demo/com.example.android.demo.MainActivity2}: android.view.InflateException: Binary XML file line #27: Error inflating class android.support.v7.internal.widget.ActionBarContainer
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
          at android.app.ActivityThread.access$800(ActivityThread.java:144)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:135)
          at android.app.ActivityThread.main(ActivityThread.java:5221)
          at java.lang.reflect.Method.invoke(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:372)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
   Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class android.support.v7.internal.widget.ActionBarContainer
          at android.view.LayoutInflater.createView(LayoutInflater.java:633)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
          at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:273)
          at android.support.v7.app.ActionBarActivityDelegateBase.createSupportActionBar(ActionBarActivityDelegateBase.java:155)
          at android.support.v7.app.ActionBarActivityDelegate.getSupportActionBar(ActionBarActivityDelegate.java:123)
          at android.support.v7.app.ActionBarActivity.getSupportActionBar(ActionBarActivity.java:73)
          at com.example.android.demo.MainActivity2.onCreate(MainActivity2.java:243)
          at android.app.Activity.performCreate(Activity.java:5933)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
          at android.app.ActivityThread.access$800(ActivityThread.java:144)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:135)
          at android.app.ActivityThread.main(ActivityThread.java:5221)
          at java.lang.reflect.Method.invoke(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:372)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
   Caused by: java.lang.reflect.InvocationTargetException
          at java.lang.reflect.Constructor.newInstance(Native Method)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
          at android.view.LayoutInflater.createView(LayoutInflater.java:607)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
          at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:273)
          at android.support.v7.app.ActionBarActivityDelegateBase.createSupportActionBar(ActionBarActivityDelegateBase.java:155)
          at android.support.v7.app.ActionBarActivityDelegate.getSupportActionBar(ActionBarActivityDelegate.java:123)
          at android.support.v7.app.ActionBarActivity.getSupportActionBar(ActionBarActivity.java:73)
          at com.example.android.demo.MainActivity2.onCreate(MainActivity2.java:243)
          at android.app.Activity.performCreate(Activity.java:5933)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
          at android.app.ActivityThread.access$800(ActivityThread.java:144)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:135)
          at android.app.ActivityThread.main(ActivityThread.java:5221)
          at java.lang.reflect.Method.invoke(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:372)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
   Caused by: java.lang.RuntimeException: Failed to resolve attribute at index 11
          at android.content.res.TypedArray.getDrawable(TypedArray.java:747)
          at android.support.v7.internal.widget.ActionBarContainer.&lt;init&gt;(ActionBarContainer.java:66)
          at java.lang.reflect.Constructor.newInstance(Native Method)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
          at android.view.LayoutInflater.createView(LayoutInflater.java:607)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
          at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:273)
          at android.support.v7.app.ActionBarActivityDelegateBase.createSupportActionBar(ActionBarActivityDelegateBase.java:155)
          at android.support.v7.app.ActionBarActivityDelegate.getSupportActionBar(ActionBarActivityDelegate.java:123)
          at android.support.v7.app.ActionBarActivity.getSupportActionBar(ActionBarActivity.java:73)
          at com.example.android.demo.MainActivity2.onCreate(MainActivity2.java:243)
          at android.app.Activity.performCreate(Activity.java:5933)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
          at android.app.ActivityThread.access$800(ActivityThread.java:144)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:135)
          at android.app.ActivityThread.main(ActivityThread.java:5221)
          at java.lang.reflect.Method.invoke(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:372)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
  </code></pre>
  
  <p>I've tried the version 4 (which I was using previously) and the v7 ActionBarDrawerToggle (with a change to the new format for the constructor) but always get the same error. The apps theme is a parent of Theme.AppCompat.Light.DarkActionBar</p>
  
  <p>I'm not really sure what to look at.</p>