Android Game Crashes After Google Play Login

I’ve set up my project to work with Google Play Games and entered all the keys from Play Console, but when I execute the Show External Login UI node, it asks me to select a Google Play Games account. When I do this, the dialog closes and the game continues in the background, but I can’t interact with the UI and after exactly 16 seconds, the app crashes.
Here are my Google Play Services settings:

I have found a solution to this problem. The thing is that when you install the APK directly, this file is not signed in the same way as in Google Play, so Google Play Service crashes. You need to upload your ABB/APK file to Google Play and download the update from there.