In my development environment, Google authentication was successful, but I encountered authentication failures when releasing the app through Google Play.

For Android apps released via Google Play, it’s necessary to use the SHA-1 certificate fingerprint set in the Google Play Console, not the one obtained from Android Studio, and add it to the Firebase console.