Search code examples
androidgoogle-playgoogle-play-servicesgoogle-api-client

GOOGLE_SIGN_IN_API fails in a release build


When my app is a built as a debug build I can login correctly, but when I build as a signed APK and release in Google Play the same account can't login.

Is there an extra Google API permission that I'm missing?

mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, this ) .addApi(Auth.GOOGLE_SIGN_IN_API, gso) .build();

...

GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); if (!result.isSuccess()) { .. }


Solution

  • As I understand, you have provided the debug SHA1 in the Google developer console, then you signed the apk and the SHA1 changed.