且构网

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

Google登录失败-Firebase

更新时间:2023-12-01 16:04:46

在已连接的iOS和 网络应用程序.要为您的Android应用设置Google登录,您需要 在项目设置"中为每个应用添加SHA1指纹.

Google sign-in is automatically configured on your connected iOS and web apps. To set up Google sign-in for your Android apps, you need to add the SHA1 fingerprint for each app on your Project Settings.

有关使用keytool获取签名证书的SHA哈希的信息,请参见此页面

See this page for information on using keytool to get the SHA hash of your signing certificate

https://developers.google.com/android/guides/client-auth

转到项目-设置-常规以添加指纹.

Go to Project - Settings - General to add the fingerprint.

要获取SHA1调试指纹(如果要调试,则只需要一个):

To get the SHA1 debug fingerprint (if you are debugging you only need this one):

keytool.exe -list -alias androiddebugkey -keystore C:\Users\<username>\.android\debug.keystore -storepass android -keypass android

要获取SHA1发布指纹:

To get the SHA1 release fingerprint:

keytool -exportcert -list -v -alias <MYKEYNAME> -keystore C:\mykeylocation\keystore.jks