How to work the android support package
<p>Using this page, <a href="http://developer.android.com/sdk/compatibility-library.html" rel="nofollow">http://developer.android.com/sdk/compatibility-library.html</a> , I have installed the Android Support Package, added a libs folder in my project, moved the JAR file into my libs directory, and clicked 'Add to Build Path' but I am still getting the error : </p>

<pre><code>com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
Exception details are logged in Window &gt; Show View &gt; Error Log
The following classes could not be found:
- GridLayout (Fix Build Path, Edit XML)
</code></pre>

<p>Here is my XML file...</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;GridLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:columnCount="2"
    android:rowCount="13" &gt;

    &lt;TextView
        android:layout_gravity="fill_horizontal"
        android:text="SN : " /&gt;

    &lt;TextView
        android:id="@+id/snTextView"
        android:layout_gravity="fill_horizontal" /&gt;


    &lt;TextView
        android:layout_gravity="fill_horizontal"
        android:text="Ver : " /&gt;

    &lt;TextView
        android:id="@+id/verTextView"
        android:layout_gravity="fill_horizontal" /&gt;

    &lt;TextView
        android:layout_gravity="fill_horizontal"
        android:text="Type : " /&gt;

    &lt;TextView
        android:id="@+id/typeTextView"
        android:layout_gravity="fill_horizontal" /&gt;

    &lt;TextView
        android:layout_gravity="fill_horizontal"
        android:text="OD : " /&gt;

    &lt;TextView
        android:id="@+id/odTextView"
        android:layout_gravity="fill_horizontal" /&gt;

    &lt;TextView
        android:text="Closing Mode"
        android:layout_gravity="fill_horizontal" /&gt;

    &lt;TextView
        android:id="@+id/closingModeTextView"
        android:layout_gravity="fill_horizontal" /&gt;

    &lt;TextView
        android:text="CT : "
        android:layout_gravity="fill_horizontal" /&gt;

&lt;/GridLayout&gt;
</code></pre>
