If you create apk and transfer it to the device, then the application does not pass authorization (through Google). If you run it from Android Studio, it works fine. When authorizing (on the device), it displays the message
Google sign in failed. Status {statusCode = unknown status code: 12501, resolution = null}
Thank!