title: Button cannot be resolved to a type
body: <pre><code>import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  
  
  
  public class ProjectActivity extends Activity{
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          Button tut1 = (Button) findViewById(R.id.tutorial1);
          tut1.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
  
              startActivity(new Intent("android.intent.action.TUTORIALONE"));
  
              }
          });
  
      }
  }
  </code></pre>
  
  <p>Followed a youtube tutorial but i am
  Getting an error in this line:</p>
  
  <pre><code>setContentView(R.layout.main);
  </code></pre>
  
  <p>"Button cannot be resolved to a type"</p>
  
  <p>I'm new to android dev so im confused. Help!</p>