Android App Crashes when I try to load it in the Emulator
<p>I'm very new to Android programming and am having a rough start. I've created a general UI for a program and haven't changed any of the actual Java code. Whenever I try to load the app in the emulator just to see what it looks like, the app crashes. Does anyone have an idea as to why this would happen?</p>

<p>Also, other apps that I made from tutorials work perfectly fine, just the one that I recently created a layout for doesn't work.</p>

<p>Here is the Java code</p>

<pre><code>package com.nubs.tableposv0_1;

import android.app.Activity;
import android.os.Bundle;

public class TablePOSv0_1Activity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}
</code></pre>

<p>Here is the updated XML code</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal"
    android:weightSum="5"
    &gt;
    &lt;LinearLayout
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1"
        android:orientation="vertical"
        &gt;
        &lt;Button android:id="@+id/item1"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 1"
            /&gt;
        &lt;Button android:id="@+id/item2"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 2"
            /&gt;
        &lt;Button android:id="@+id/item3"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 3"
            /&gt;
        &lt;Button android:id="@+id/item4"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 4"
            /&gt;
        &lt;Button android:id="@+id/item5"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 5"
            /&gt;
    &lt;/LinearLayout&gt;
    &lt;LinearLayout
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1"
        android:orientation="vertical"
        &gt;
        &lt;Button android:id="@+id/item6"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 6"
            /&gt;
        &lt;Button android:id="@+id/item7"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 7"
            /&gt;
        &lt;Button android:id="@+id/item8"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 8"
            /&gt;
        &lt;Button android:id="@+id/item9"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 9"
            /&gt;
        &lt;Button android:id="@+id/item10"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Item 10"
            /&gt;
    &lt;/LinearLayout&gt;
    &lt;LinearLayout
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="3"
        android:orientation="vertical"
        android:weightSum="9"
        &gt;
        &lt;TableLayout
            android:id="@+id/items_table"
            android:layout_width="fill_parent"
            android:layout_weight="4"
            &gt;
            &lt;/TableLayout&gt;
        &lt;LinearLayout
            android:layout_width="fill_parent"
            android:orientation="horizontal"
            android:layout_weight="1"
            android:weightSum="3"
            &gt;
            &lt;Button android:id="@+id/calc1"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="1"
                /&gt;
            &lt;Button android:id="@+id/calc2"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="2"
                /&gt;
            &lt;Button android:id="@+id/calc3"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="3"
                /&gt;
        &lt;/LinearLayout&gt;
        &lt;LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="horizontal"
            android:layout_weight="1"
            android:weightSum="3"
            &gt;
            &lt;Button android:id="@+id/calc4"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="4"
                /&gt;
            &lt;Button android:id="@+id/calc5"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="5"
                /&gt;
            &lt;Button android:id="@+id/calc6"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="6"
                /&gt;
        &lt;/LinearLayout&gt;
        &lt;LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="horizontal"
            android:layout_weight="1"
            android:weightSum="3"
            &gt;
            &lt;Button android:id="@+id/calc7"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="7"
                /&gt;
            &lt;Button android:id="@+id/calc8"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="8"
                /&gt;
            &lt;Button android:id="@+id/calc9"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="9"
                /&gt;
        &lt;/LinearLayout&gt;
        &lt;LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="horizontal"
            android:layout_weight="1"
            android:weightSum="3"
            &gt;
            &lt;Button android:id="@+id/calc0"
                android:layout_weight="2"
                android:layout_height="fill_parent"
                android:text="0"
                /&gt;
            &lt;Button android:id="@+id/calcdec"
                android:layout_weight="1"
                android:layout_height="fill_parent"
                android:text="."
                /&gt;
        &lt;/LinearLayout&gt;
        &lt;Button android:id="@+id/total"
            android:layout_weight="1"
            android:layout_width="fill_parent"
            android:text="Total"
            /&gt;
    &lt;/LinearLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>Logcat:</p>

<pre><code>07-22 01:24:41.793: ERROR/AndroidRuntime(392):     at android.app.Activity.setContentView(Activity.java:1647)
07-22 01:24:41.793: ERROR/AndroidRuntime(392):     at com.nubs.tableposv0_1.TablePOSv0_1Activity.onCreate(TablePOSv0_1Activity.java:15)
07-22 01:24:41.793: ERROR/AndroidRuntime(392):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-22 01:24:41.793: ERROR/AndroidRuntime(392):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-22 01:24:41.793: ERROR/AndroidRuntime(392):     ... 11 more
07-22 01:25:41.482: ERROR/DefContainer(224): Couldn't copy file: /data/local/tmp/TablePOSv0_1.apk
</code></pre>
