title: R.Id. cannot be resolved or is not a field - Can't find the mistake
body: <p>From looking online, I know there is some problem with my XML file but not sure what it is. I've tried remaking the entire button from scratch but the error persists. The following is the code in the activity.</p>
  
  <pre><code>package com.example.linked1n;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.ActionBarActivity;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  import com.example.linked1n.R;
  
  public class MainActivity extends ActionBarActivity implements View.OnClickListener{
  
  Button login;
  int counter;
  EditText username, password;
  String success;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      counter = 3;
      username = (EditText)findViewById(R.id.getEmail);
      password = (EditText)findViewById(R.id.getPassword);   
  
      login = (Button)findViewbyId(R.Id.login);
      login.setOnClickListener(this);  
  
  }
  
  private void loginClick() {
      Intent intent = new Intent(this, ScreenAftLog.class );
      startActivity(intent);
  }
  
  public void onClick (View v) {
      switch (v.getId()) {
          case R.Id.login:
              loginClick();
              break;
      }
  }
  </code></pre>
  
  <p>This is the XML code:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context="com.example.linked1n.MainActivity" &gt;
  
  &lt;Button
      android:id="@+id/login"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:onClick="loginClick"
      android:text="@string/yayaya" /&gt;
  
  &lt;EditText
      android:id="@+id/getEmail"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="62dp"
      android:ems="10"
      android:inputType="textWebEmailAddress" /&gt;
  
  &lt;EditText
      android:id="@+id/getPassword"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/getEmail"
      android:layout_marginTop="32dp"
      android:ems="10"
      android:inputType="textPassword" &gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Any help will be appreciated!
  Edit: adding  doesn't fix it </p>