First time itself R.java is not getting generated
<p>I have tried all that i could to generate the R.java file but in vain. I have just created an android project and while creating the android project it isn't creating R.java file ! There were compilation errors in my project as i still had to add the android.jar file to my project but even after adding the jar file, cleaning the existing build and again building it didn't work. </p>

<p>Then i checked the 'build automatically' option in eclipse. Even that didn't help ! </p>

<p>Few things to be noted :</p>

<p>1)I have created the android project with build-target android 2.2 and API version 8.</p>

<p>2)I would like to tell is while creating the project it gives an error saying proguard.cfg not found ! I couldn't locate 'default.properties' file to delete the entry which refers to proguard.cfg entry.</p>

<p>3)JAVA_HOME in my environment variables is pointing to jdk1.4. Dunno whether this should be the reason !</p>

<p>4)Contents of </p>

<p>1.main.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: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/hello"
    /&gt;
    &lt;/LinearLayout&gt;
</code></pre>

<p>2.strings.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;string name="hello"&gt;Hello World, HelloAndroidActivity!&lt;/string&gt;
    &lt;string name="app_name"&gt;Hello, Android !!&lt;/string&gt;
&lt;/resources&gt;
</code></pre>

<p>3.AndroidManifest.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.pack.android.test"
  android:versionCode="1"
  android:versionName="1.0"&gt;
&lt;uses-sdk android:minSdkVersion="8" /&gt;

&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
    &lt;activity android:name=".HelloAndroidActivity"
              android:label="@string/app_name"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;

&lt;/application&gt;

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

<p>4.Code for HelloWorldActivity.java</p>

<pre><code>  package com.pack.android.test;

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

  public class HelloAndroidActivity 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>Attached are the images for</p>

<p><img src="http://i.stack.imgur.com/dAuwd.jpg" alt="Folder structure in eclipse (Eclipse 3.6)">
<img src="http://i.stack.imgur.com/xSFoJ.png" alt="res/drawable-hdpi/icon.png">
<img src="http://i.stack.imgur.com/J3ZCw.png" alt="res/drawable-ldpi/icon.png">
<img src="http://i.stack.imgur.com/ehDSC.png" alt="res/drawable-mdpi/icon.png">
Please help me out. I have just started with the Hello World application :)</p>

<p>Thanks,
Adithya</p>
