更新时间:2023-12-05 22:02:04
更新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
Easiest way would be to connect/sync to firebase from
工具> 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