I forked this google sample project and ran the android signin.
I set up the options in the google developers console and got a client id, but when running the proje
As I have commented and as Google's documentation, you should use "Web application" type Client Id, instead of "Android" type Client Id.
As the following screenshot:
Use "default_web_client_id" in GoogleSignInOptions
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build();
It works perfectly.
In my case was just the incompatible version of the libraries... :(