Android following class could not be found
<p>I'am trying to load a spinner to my layout and keep geting this error:</p>

<p>The following classes could not be found:
- Spinner (Change to android.widget.Spinner, Fix Build Path, Edit XML)</p>

<p>heres my xml:</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="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" &gt;

    &lt;Spinner
        android:id="@+id/spn_dates"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:onClick="displayDatesToSpiner" /&gt;

    &lt;ListView
        android:id="@+id/LST_bought_products"
        android:layout_width="match_parent"
        android:layout_height="302dp" &gt;
    &lt;/ListView&gt;

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

<p>Thanks</p>
