I know there are some posts about this issue,such as this one and this one.
But my case is a bit special. Because the same source code works for another package name. So I think the only possible reason could be the google console setup. Here is the screenshot of my setup:
The first one is my testing version package name which works perfectly. The second one is my real package name which got the authorization failure. I'm using the debug.keystore to generate the sha1. And I did try to create a separated Android Key for my real package name. But I got the same error.
Does anybody can give me a hint? Thanks.