且构网

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

android:google登录api和facebook登录api无法在应用apk中使用

更新时间:2022-06-26 08:29:44

以下是为什么您看不到Google Map的答案.

我最近在Google Play商店上载了APK,在检查了Play控制台后,我遇到了同样的问题.

I recently Upload the APK on Google Play store and I faced the same issue after checking the Play Console I found the solution for this problem.

他们的钥匙没有问题,但问题在于您的SHA-1.您可以使用SHA-1对APK进行签名,然后再上传APK.

Their is no problem with your key but the problem is with your SHA-1. You signed your APK with your SHA-1 that is fine and then upload the APK it also fine.

但是,按照新的Play控制台更新,当您使用SHA-1对APK进行签名并上传仅由您签名的APK时,根据新的更新,Google Play也对它进行签名,以提高安全性.在Google Play部分中查看以下内容:

But as per the new update for Play Console when you signed your APK with SHA-1 and upload the APK it only signed by you but as per the new update it is also signed by Google Play for more security. Have a look here some part of Google Play section:

使用Google Play应用签名:您使用上传密钥对应用进行签名. 然后,Google验证并删除上传密钥签名.最后, Google使用您提供的原始应用签名密钥对应用进行重新签名 并将您的应用交付给用户.

With Google Play App Signing: You sign your app with your upload key. Then, Google verifies and removes the upload key signature. Finally, Google re-signs the app with the original app signing key you provided and delivers your app to the user.

您可以在此处引用文档.

现在,您的问题的答案是:成功上传APK后,您可以看到在具有两个SHA-1的部分中,第一个SHA-1是由Google创建的,而第二个SHA-1是您的.

Now, The Answer of your question is After successfully upload the APK you can see that in the section with Two SHA-1 the 1st SHA-1 is Google created its own and 2nd SHA-1 is its yours.

因此,只需复制Google SHA-1并将其粘贴到生成Google Map API密钥的控制台中即可.

So just copy the Google SHA-1 and paste it to your console where you generate the Google Map API Key.

如何创建密钥库?您可以参考.

How to create a keystore? You can refer this.