I'm trying to implement Google Sign In in my Flutter app, and this is the code:
final GoogleSignIn googleSignIn = GoogleSignIn(
serverClientId:
"servicerClientId.apps.googleusercontent.com",
);
final GoogleSignInAccount? googleSignInAccount =
await googleSignIn.signIn();
if (googleSignInAccount != null) {
// Implement Sign In
}
However I keep getting the
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null, null)
I have my SHA-1 and SHA-256 on Firebase, added a support email, and added the 3 and App Icon on OAuth Consent. I can't find any other solutions online.