I get this issue today.. this happened because we need to register our package and sha1
I do this on development it's worked but in release mode failed
What happened?
That because we need to use different sha1 for debug and releas
So first
use web client id not android id
Even we use web client id we still required to register our app package to oauth client id for type android
Register two type sha1 for release and development are different
So actually u need to create 3 times
Web client id
Android id (release)
Android id (build) this step is optional if you in release mode this no needed