发布已签名的Android应用,Google Plus登录名和Google Map无法正常工作 [英] Release signed Android App,Google Plus Login and Google Map not Working
问题描述
1.我在Android应用程序中使用 Google plus登录和 Google地图.
1.I am using Google plus login and Google map in my android Application.
2.在将应用程序从Android Studio调试到Real device(Mobile)Google plus登录名和Google Map的过程中.(一切正常)
2.In while debugging the App from Android Studio to Real device(Mobile)Google plus login and Google Map Works Fine.(Everything Works fine)
问题:
1.Build->从Android Studio生成签名的APK-我使Release apk无法使用 Google plus 登录.
1.Build--> Generate Signed APK -from android Studio ,i made Release apk its not able to login using Google plus.
2. Google地图也显示空白屏幕.
2.Also Google Map is showing empty screen.
我尝试创建 OAuth客户端ID ,该错误消息是通过Google Developer Console提供的.
I tried to create OAuth Client ID, its Giving Error message from Google Developer Console
错误消息: 指纹重复 您指定的指纹已被该项目或其他项目中的Android OAuth2客户端ID使用
Error Message: Duplicate fingerprint The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project
请帮助任何人解决该问题.
Please help me anyone how to resolve it.
1
1.我测试了 debug.apk ,它在Google加上登录名和地图后的工作状态非常完美.
1.I tested debug.apk its worked perfectly Google plus login and map.
2.但是不能在 release.apk 中使用.请帮助我解决该问题.
2.But not working in release.apk.help me how to solve it.
推荐答案
您已经生成了这样的Sign keyHash.
You have generate Sign keyHash like this .
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl
base64
例如这样的示例
C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe" -exportcert -alias selvin -keystore c:\users\selvin\desktop\selvin.kp | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\OpenSSL-Win32\bin\openssl base64
这是在系统中为CMD生成的,并在Google consol中添加此哈希键.
this is generate for CMD in your system add add this Hash key in your Google consol.
这篇关于发布已签名的Android应用,Google Plus登录名和Google Map无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!