Google sign_in 不在调试模式下工作,但在发布模式下工作

Google sign_in not working in debug mode but working in release mode

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10:, null, null)

为了 Google 登录在发布和调试模式下工作,您需要更新您的 SHA-1 和 SHA-256 密钥以在 firebase 上发布和调试模式。