title: Android Unable to start activity Component
body: <p>First time posting here, just made an account to do so after using Stackoverflow for over a year. I've been trying to get my <strong>simple</strong> app to work for over an hour now. I see no errors in the java on either activity and have no idea what to look for in the log. I've run out of options and thought I would try here before rewriting it so if it happens in the future, I'll be able to fix it.</p>
  
  <p>The log is this</p>
  
  <pre><code>11-02 21:03:37.535  19010-19010/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
      Process: net.androidbootcamp.celticsongsapp, PID: 19010
      java.lang.RuntimeException: Unable to start activity ComponentInfo{net.androidbootcamp.celticsongsapp/net.androidbootcamp.celticsongsapp.SplashActivity}: android.view.InflateException: Binary XML file line #31: Error inflating class com.android.internal.widget.ActionBarContainer
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
              at android.app.ActivityThread.access$800(ActivityThread.java:162)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
              at android.os.Handler.dispatchMessage(Handler.java:102)
              at android.os.Looper.loop(Looper.java:135)
              at android.app.ActivityThread.main(ActivityThread.java:5431)
              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:914)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
       Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class com.android.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 com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3743)
              at com.android.internal.policy.impl.PhoneWindowEx.generateLayout(PhoneWindowEx.java:22)
              at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3815)
              at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1996)
              at android.support.v7.app.AppCompatDelegateImplV7.onCreate(AppCompatDelegateImplV7.java:148)
              at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:60)
              at net.androidbootcamp.celticsongsapp.SplashActivity.onCreate(SplashActivity.java:16)
              at android.app.Activity.performCreate(Activity.java:6056)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
              at android.app.ActivityThread.access$800(ActivityThread.java:162)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
              at android.os.Handler.dispatchMessage(Handler.java:102)
              at android.os.Looper.loop(Looper.java:135)
              at android.app.ActivityThread.main(ActivityThread.java:5431)
              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:914)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
       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 com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3743)
              at com.android.internal.policy.impl.PhoneWindowEx.generateLayout(PhoneWindowEx.java:22)
              at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3815)
              at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1996)
              at android.support.v7.app.AppCompatDelegateImplV7.onCreate(AppCompatDelegateImplV7.java:148)
              at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:60)
              at net.androidbootcamp.celticsongsapp.SplashActivity.onCreate(SplashActivity.java:16)
              at android.app.Activity.performCreate(Activity.java:6056)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
              at android.app.ActivityThread.access$800(ActivityThread.java:162)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
              at android.os.Handler.dispatchMessage(Handler.java:102)
              at android.os.Looper.loop(Looper.java:135)
              at android.app.ActivityThread.main(ActivityThread.java:5431)
              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:914)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
       Caused by: java.lang.RuntimeException: Failed to resolve attribute at index 13
              at android.content.res.TypedArray.getDrawable(TypedArray.java:747)
              at android.view.View.&lt;init&gt;(View.java:3748)
              at android.view.ViewGroup.&lt;init&gt;(ViewGroup.java:498)
              at android.widget.FrameLayout.&lt;init&gt;(FrameLayout.java:115)
              at android.widget.FrameLayout.&lt;init&gt;(FrameLayout.java:111)
              at android.widget.FrameLayout.&lt;init&gt;(FrameLayout.java:107)
              at com.android.internal.widget.ActionBarContainer.&lt;init&gt;(ActionBarContainer.java:60)
              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 com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3743)
              at com.android.internal.policy.impl.PhoneWindowEx.generateLayout(PhoneWindowEx.java:22)
              at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3815)
              at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1996)
              at android.support.v7.app.AppCompatDelegateImplV7.onCreate(AppCompatDelegateImplV7.java:148)
              at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:60)
              at net.androidbootcamp.celticsongsapp.SplashActivity.onCreate(SplashActivity.java:16)
              at android.app.Activity.performCreate(Activity.java:6056)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
              at android.app.ActivityThread.access$800(ActivityThread.java:162)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
              at android.os.Handler.dispatchMessage(Handler.java:102)
              at android.os.Looper.loop(Looper.java:135)
              at android.app.ActivityThread.main(ActivityThread.java:5431)
              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:914)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
  </code></pre>
  
  <p>I hope I'm not doing this wrong, but I really am kind of frustrated</p>
  
  <p>Asked to include .xml and .class files</p>
  
  <p>The class for the SplashActivity</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>package net.androidbootcamp.celticsongsapp;
  
  import android.content.Intent;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuItem;
  
  import java.util.Timer;
  import java.util.TimerTask;
  
  public class SplashActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_splash);
  
          TimerTask task = new TimerTask() {
              @Override
              public void run() {
                  finish();
                  startActivity(new Intent(SplashActivity.this, MainActivity.class));
              }
          };
          Timer opening = new Timer( );
          opening.schedule(task,4000);
      }
  }
  </code></pre>
  
  <p>And this is the XML</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".SplashActivity"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/txtCeltic"
          android:id="@+id/txtTitle"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:background="@drawable/celtic"
          android:textSize="26sp"
          android:gravity="center|bottom"
          android:textColor="#000000"
          android:textStyle="bold" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>