谷歌signIn不工作在发布apk安卓

时间:2017-09-10 16:18:47

标签: android google-signin

在发布apk中,谷歌标志不起作用,但在调试apk中它正在运行。我也更新了sha1。在发行版sha1中,调试sha1都是相同的。我检查了gradle控制台。我提到了更多教程,堆栈溢出解决方案。我无法找到解决方案。还有更好的解决方案吗?

2 个答案:

答案 0 :(得分:1)

您需要将版本sha1密钥添加到Google控制台中 要获得释放sha1键,您可以尝试 对于Windows

keytool -list -v -keystore {path to keystore(jks file)} -alias {alias_name}

对于Linux / Max

keytool -exportcert -list -v  -keystore ~/path_to_your_keystore

将sha1键添加到谷歌控制台

答案 1 :(得分:0)

如何找到版本sha1:

在cmd或终端中键入以下命令:

keytool -list -v -keystore D:\filepath\YourAPP.jks -alias XYZ

并调试sha1:

![Go to far left[![][1][1]

请参考以下图片并获取SHA-1密钥 Refresh

View in console panel at bottom