I try to learn how i can use google sign in in my android App, but i catch com.google.android.gms.common.api.ApiException: 16 And i can\'t find on stackoveflow
I am developing an Android application using Flutter, tried to integrate Google Sign In and faced the same problem with ApiException: 16 and SIGN_IN_FAILED (instead of RESULT_CANCELED).
Application type on Firebase was set to android.
In my case, after many hours of debugging, it turned out to be a wrong SHA-1 problem.
As soon as I extracted the SHA-1 key from my project and updated Firebase console, it worked.