title: android "main cannot be resolved or is not a field"
body: <p>i m new to this platform, please help me to find what is the error...<br>
       setContentView(R.layout.main); // this line shows the error. </p>
  
  <p>Code:</p>
  
  <pre><code>package com.example.helloandroid;
  
  import android.R;
  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>