title: Android Studio ERROR: Cannot resolve symbol 'View'
body: <p>I'm trying to follow this tutorial from Google to create your own android app with Android Studio. But when I follow the 4th step on this page: <a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow noreferrer">http://developer.android.com/training/basics/firstapp/starting-activity.html</a> Android Studio ends up with this error:</p>
  <pre><code>Cannot resolve symbol 'View'
  </code></pre>
  <p>This is what my code looks like at the moment:</p>
  <pre><code>public class MainActivity extends ActionBarActivity {
      /** Called when the user clicks the Send button */
      public void sendMessage(View view) { &lt;--- (This line ends up with the error)
          // Do something in response to button
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.menu_main, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  <p>What's wrong with this code? I'm not experienced in java and after looking at other questions I still couldn't find the right solution.</p>
  <p>Thanks for helping!</p>