title: Cannot find symbol class onClickListener
body: <p>I'm new to android development. Here's the problem i ran into.
    I'm using Android Studio.
    I looked up on many sites, they said to import the related class. Having done
    that, the problem remains.
    Any help is appreciated.</p>
  
  <p><br>
  Can anyone please help me with this, i have been searching for a while now for the solution.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>package com.example.veeresh.myapplication;
  //import statements
  import android.support.v7.app.ActionBarActivity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.widget.Button;
  import android.view.View;
  import android.widget.TextView;
  
  public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Button button1 = (Button)findViewById(R.id.button1);
  
          button1.setOnClickListener(
                  //error: cannot find symbol class onClickListener
                  new Button.onClickListener()
                  {
                      public void onClick(View v)
                      {
                          TextView text1 = (TextView)findViewById(R.id.text1);
                          text1.setText("Veeresh Here");
                      }
                  }
                  );
      }
  }
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>Error:(24, 27) error: cannot find symbol class onClickListener<br>
               Error:Execution failed for task ':app:compileDebugJava'.<br>
               Compilation failed; see the compiler error output for details.</p>
  </blockquote>