且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

此应用无权使用 Firebase 身份验证.请验证 Firebase 控制台中配置的包名称和 SHA-1 是否正确

更新时间:2023-12-05 17:33:10

当您更新 Android Studio 时,用于签署调试应用程序的调试密钥可能已更改.只需在 Firebase 控制台中添加调试密钥的新 SHA-1 校验和.

When you updated Android Studio, the debug key which is used to sign debug apps might have changed. Just add the new SHA-1 checksum of your debug key in the firebase console.

最简单的方法是从

工具>Firebase>身份验证>连接>同步

Tools>Firebase>Authentication>Connect>Sync

如果您想手动执行或发布密钥库,请先使用以下命令生成 SHA-1 校验和:


If you want to do it manually or for release keystore, first generate SHA-1 checksum using following command:

keytool -list -v -keystore KEYSTORE_PATH -alias ALIAS_NAME

然后复制 SHA-1 校验和并转到:

Then copy the SHA-1 checksum and go to:

Firebase 控制台 > 您的项目 > 应用设置 > 添加指纹

Firebase Console > Your project > Settings of the app > Add Fingerprint

有关详细信息,请阅读本指南:验证您的客户 |适用于 Android 的 Google API

For more info, read this guide: Authenticating Your Client | Google APIs for Android