title: Android Studio: Error: <identifier> expected error
body: <p>I'm a rookie to programming. I've been trying to build an app and been getting these errors as seen in the screenshot. I've tried the "Invalid Caches/Restart" but it didn't help. What am I doing wrong here?</p>
  
  <p><img src="https://i.stack.imgur.com/XhM9l.png" alt="enter image description here"></p>
  
  <p>EDIT: Sorry for earlier ignorance. I've added the code snippets.</p>
  
  <p>Login.Java:</p>
  
  <pre><code>package com.example.ankit.mrestro;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.design.widget.FloatingActionButton;
  import android.support.design.widget.Snackbar;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.view.View;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.TextView;
  
  public class Login extends AppCompatActivity implements View.OnClickListener {
      Button blogin;
      EditText etUsername, etPassword;
      TextView RegisterHere,Skip;
      UserLocalStorage userLocalStorage;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_login);
  
          etUsername = (EditText) findViewById(R.id.etUserName);
          etPassword = (EditText) findViewById(R.id.etPassword);
          RegisterHere = (TextView) findViewById(R.id.RegisterHere);
          Skip = (TextView) findViewById(R.id.Skip);
  
          blogin = (Button) findViewById(R.id.blogin);
          blogin.setOnClickListener(this);
          RegisterHere.setOnClickListener(this);
          Skip.setOnClickListener(this);
  
          userLocalStorage= new UserLocalStorage(this);
  
  
  
      }
  
      @Override
      public void onClick(View v) {
  
  
      switch (v.getId()){
          case R.id.blogin:
              User user= new User(null, null);
              userLocalStorage.storeUserData(user);
           userLocalStorage.SetUserLoggedIn(true);
  
              break;
  
          case R.id.RegisterHere:
              startActivity(new Intent(this,Register.class));
              break;
          case R.id.Skip:
              startActivity(new Intent(this,MainActivity.class));
              break;
          }
      }
  }
  </code></pre>
  
  <p>activity_login.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center"
      android:background="@drawable/screen1"
      android:orientation="vertical"
      tools:ignore="HardcodedText" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1.2"
          android:orientation="vertical"&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="0.3"
          android:orientation="vertical"&gt;
  
          &lt;EditText
              android:layout_width="350dp"
              android:layout_height="35dp"
              android:layout_gravity="center"
              android:background="@drawable/text"
              android:textColor="#A9A9A9A9"
              android:textStyle="normal"
              android:textSize="20sp"
              android:textAlignment="center"
              android:text="Username"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="0.4"
          android:orientation="vertical"&gt;
  
          &lt;EditText
              android:layout_width="350dp"
              android:layout_height="35dp"
              android:layout_gravity="center"
              android:background="@drawable/text"
              android:textColor="#A9A9A9A9"
              android:textStyle="normal"
              android:textSize="20sp"
              android:textAlignment="center"
              android:text="Password"/&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="0.8"
          android:orientation="vertical"&gt;
  
          &lt;Button
              android:layout_width="@android:dimen/thumbnail_width"
              android:layout_height="@android:dimen/app_icon_size"
              android:layout_gravity="center"
              android:background="@drawable/button"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="20dp"
              android:text="Login"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="0.2"
          android:orientation="vertical"&gt;
  
          &lt;Button
              android:layout_width="120dp"
              android:layout_height="25dp"
              android:layout_gravity="center"
              android:background="@null"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="15dp"
              android:text="Register"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="0.4"
          android:orientation="vertical"&gt;
  
          &lt;Button
              android:layout_width="120dp"
              android:layout_height="25dp"
              android:layout_gravity="center"
              android:background="@null"
              android:textColor="#ffffff"
              android:textStyle="bold"
              android:textSize="15dp"
              android:text="Skip"/&gt;
  
      &lt;/LinearLayout&gt;
  
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thanks for help guys!</p>