Why does the R.java file disappear after a few cleans?
<p>I understand that the R.java file is important for mostly a lot of functions in android. So I learned that the way to gte around this is to Clean your project after creating a new android application project. But after a few cleans and you have a lot of code, the R.java file disappears and you are left with an error-ridden <code>MainActivity.java</code> file!</p>

<p>I HAVE NO ERROR IN MY XML FILES. And that is why I am really confused. The only error in my package/project folder is in the <code>MainActivity.java</code></p>

<p>Any ideas how to get around this? </p>

<p>I am using Eclipse for making Android Applications, but more stable IDE suggestions for creating android applications would also be appreciated!</p>

<p>Here is my xml file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/Quote"
/&gt;
&lt;EditText
android:id="@+id/Quote"
android:inputType="text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/&gt;
&lt;Button
android:id="@+id/go"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/press"
/&gt;
&lt;Button
android:id="@+id/genRan"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/genRan"
/&gt;
&lt;/LinearLayout&gt;
</code></pre>
