android:google登录api和facebook登录api无法在应用apk中使用 [英] android:google login api and facebook log in api cannot use in app apk

查看:188
本文介绍了android:google登录api和facebook登录api无法在应用apk中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将此2登录api与我的应用程序链接起来,并且已经在调试模式下完成(将手机与计算机连接,然后按运行).当我构建apk并将其放到手机上并运行时,它无法像在调试模式下那样工作.

I link this 2 log in api with my app and it is already done in debug mode(connect my phone with my computer and press run). When I build apk and put it to my phone and run , it doesn't work like in debug mode.

它警告1. Windows专有索引超出范围 2.哈希键不匹配(Google结果错误代码:10)

It alerts that 1. windows excption index out of bound 2. hash key doesn't match (google result error code: 10)

我认为第一个问题不是真正的问题. 我认为第二个问题是问题,因此我去查看了计算机上的SHA-1.这与developergoogle中的SHA-1相匹配.

I think the first problem isn't the true problem. I think the second is the problem so I go to see the SHA-1 on my computer. It's a match with SHA-1 in developergoogle.

我在调试模式下运行应用.

I run app in debug mode.

效果很好. google api的结果是错误代码:0(不是错误)

It works well. The result of google api is error code:0 (not error)

谁能告诉我这个问题是什么以及如何解决?

Can anyone tell me what this problem is and how to solve it ?

推荐答案

以下是为什么您看不到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.

这篇关于android:google登录api和facebook登录api无法在应用apk中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆