无法使用 keytool 获取证书的 SHA-1 指纹

Unable to to get the SHA-1 fingerprint of the certificate using keytool

我正在按照本指南将 google plus 与我的 android 应用集成:Start Integrating Google+ in your android app

当我尝试 运行 Keytool 实用程序获取证书的 SHA-1 指纹时,我得到如下输出:

您在 keytool 调用结束时缺少参数 -list -v。它应该看起来像:

keytool -exportcert -alias androiddebugkey -keystore <path-to-debug-or-production-keystore> -list -v