title: What can I do when I get a "cannot be resolved to a type" error?
body: <p>I am trying to create a button on the <code>mainActivity</code>.  Once clicked, it takes a user to a second view.  However I keep getting an error saying that</p>
  
  <blockquote>
    <p>onclick listener cannot be resolved to a type </p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>the method set onclicklistener in the type view is not applicaible for the type of arguments</p>
  </blockquote>
  
  <p>Below is the screenshot of the code:</p>
  
  <p><img src="https://i.stack.imgur.com/ulAWH.jpg" alt=""></p>
  
  <p>Does anyone have any ideas?</p>