I have just started implementing Google Sign In API, this is my configuration:
I added this to gradle:
compile 'com.google.android.gms:play-services:10.2.6'
This is my OnCreate:
gso=new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
.requestEmail()
.build();
googleApiClient=new GoogleApiClient.Builder(this)
.enableAutoManage(this,this)
.addApi(Auth.GOOGLE_SIGN_IN_API,gso)
.build();
This is how I invoke the sign-in process:
Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(googleApiClient);
startActivityForResult(signInIntent, GOOGLE_SIGNIN_ID);
But it doesn't work and it says Google Play Services has stopped working, in the logs it says "INTERNAL ERROR"
I have linked my app to a service, I have the OAUTH2 code, I don't know what I'm doing wrong and am pretty much desperate, thanks for your help.