title: Android The following classes could not be found - EditText (Change to android.widget.EditText, Fix Build Path, Edit XML)
body: <p>When trying to view the Graphical Layout view I am getting the following error:</p>
  
  <blockquote>
    <p>The following classes could not be found - EditText (Change to
    android.widget.EditText, Fix Build Path, Edit XML)</p>
  </blockquote>
  
  <p>The app works fine and I can edit the XML without any problems. I just can't load the graphical layout view anymore. In the Main.java file there are no problems or errors importing the EditText widget from the Android library.</p>
  
  <p>I'm using Eclipse Indigo Service Release 2. Got all the recent updates.</p>
  
  <p>I'm also using the latest Android SDK Tools 20.0.1</p>
  
  <p>Here is the source. I've tried the option to Source > Cleanup Document and Format just to make sure the XML was correct.</p>
  
  <blockquote>
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="63dp"
          android:text="@string/button1" /&gt;
  
      &lt;EditText
          android:id="@+id/editText1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_marginTop="16dp"
          android:ems="10"
          android:inputType="" &gt;
  
          &lt;requestFocus /&gt;
      &lt;/EditText&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  </blockquote>
  
  <p>I managed to fix the problem.</p>
  
  <p>I had to change </p>
  
  <blockquote>
    <p>android:inputType=""
     <strong>to</strong> 
    android:inputType="text"</p>
  </blockquote>
  
  <p>The Graphical Layout view now works again.</p>