I am developing an Android application with a friend, and we have just implemented features for logging in to your Google account ( https://developers.google.com/identity/sign-in/web/sign-in ).
The code works fine on his phone, and if he sends me .apk, it works fine on mine too. If I try to create the source code in Android Studio, the application will behave differently. Now I get the error code 12501 ("SIGN_IN_CANCELLED") from the call to Auth.GoogleSignInApi.getSignInResultFromIntent (). The fact that it works with .apk built on his machine, but not with the source code created on mine, it seems to me that the problem is with the google-services.json configuration file, which was created using my friend SHA- 1 androiddebugkey which collides with my SHA-1 key used to build code.
Then my question is whether this is really the cause of my problem and what is the solution to this problem. Should google-services.json configuration file be created for each developer?
Nimyz source
share