Result success is not working in handleSignInResult method in gmail authentication API in android How to resolve this issue ?

```
private void handleSignInResult(GoogleSignInResult result) {
    //If the login succeed
    if (result.isSuccess()) {
        //Getting google account
        GoogleSignInAccount account = result.getSignInAccount();

        //Displaying name and email
        textViewName.setText(acctount.getDisplayName());
        textViewEmail.setText(account.getEmail());

        //Initializing image loader
        imageLoader = CustomVolleyRequest.getInstance(this.getApplicationContext())
            .getImageLoader();

        imageLoader.get(account.getPhotoUrl().toString(),
            ImageLoader.getImageListener(profilePhoto,
                R.mipmap.ic_launcher,
                R.mipmap.ic_launcher));
        profilePhoto.setImageUrl(account.getPhotoUrl().toString(), imageLoader);
    }

    else {
        Toast.makeText(this, "Login Failed", Toast.LENGTH_LONG).show();
    }
}

```