java我需要获得发布和调试证书指纹的帮助
我正在开发一个需要使用谷歌帐号登录的应用程序。我被困在发布证书指纹和调试证书指纹
上面说
Open a terminal and run the keytool utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints.
To get the release certificate fingerprint:
keytool -exportcert -list -v \
-alias <your-key-name> -keystore <path-to-production-keystore>
我不明白的是我的主要名字是什么&;在哪里可以得到path-to-production-keystore
。同样,当我在Android Studio的终端中键入keytool
时,我得到
'keytool' is not recognized as an internal or external command,
operable program or batch file.
要获得调试证书指纹,它说
keytool -exportcert -list -v \
-alias 安卓debugkey -keystore %USERPROFILE%\.安卓\debug.keystore
这里的%USERPROFILE%\
是什么
谢谢你抽出时间
# 1 楼答案
USERPROFILE将是您在该计算机上的用户名
如果您的名字是“auro”,那么命令将是
-别名androiddebugkey-密钥库auro\。android\debug。密钥库
文件的路径将是
C:\Users\auro。安卓