I have the same app in Android Studio on two devices. On one laptop everything works perfectly, but on the other one, I can't run the app, although the code is identical.
I have spotted only one difference in the google services json file:

In the second case, the json file looks a bit different:

When I press on debug, I get the following:

I tried downloading the json file again from firebase, cleaning and rebuilding the project, but nothing worked on my second device. Does anyone know how to deal with this?