I tried the google developer documentation and tried sign-in for my app. The code is copied from the git with added codes from the documentation. and defined in LoginAc
The Error occurred only in emulator in when compiling with new play service 8.3 While testing in actual hardware doesn't show any problem. It is due to the mismatch in the play service versions in emulator and the API. Hope they upgrade the Google API SDK with latest play service and release some notice about it.
While you calling signIn() method ,method can't find startActivityForResult. where you got error.
You need to @override startActivityForResult for LoginActivity.
Add below code in you LoginActivity.
Code:
@Override
public void startActivityForResult(Intent intent, int requestCode) {
super.startActivityForResult(intent, requestCode);
}