获取用于签名证书的 MD5 指纹时出现问题

发布于 2024-10-30 12:21:46 字数 964 浏览 0 评论 0原文

在使用 Google 代码网站时,我尝试使用命令提示符来遵循他们的说明:

首先,确定您要使用哪个键 用于在您的申请上签名 释放并确保路径 包含它的密钥库。

接下来,使用 -list 运行 Keytool 选项,针对目标密钥库 和关键别名。下表列出了 您应该使用的选项。

但我不断收到此错误:

C:\程序 文件\Java\jdk1.6.0_23\bin>keytool -list keytool 错误:java.lang.Exception:密钥库文件 不存在:C:\Documents 和 设置\nwashington.keystore

当我按照网站上的下一个说明操作时,也会

这是 Keytool 命令的示例 生成MD5证书 密钥 alias_name 的指纹 密钥库 my-release-key.keystore

这是我写的内容和我的错误:

> C:\Program
> Files\Java\jdk1.6.0_23\bin>keytool
> -list -alias androiddebugkey -keystore C:\Documents and
> Settings\nwashington.android\debug.keystore
> -storepass android -keypass android keytool error:
> java.lang.RuntimeException: Usage
> error, and is not a legal command

我没有输入正确的“my-release-key”吗?

谁能帮我解决这个问题/错误意味着什么?

谢谢你!

While using the Google code website, I have tried using the command prompt to follow their instructions:

First, determine which key you will
use to sign your application at
release and make sure of the path to
the keystore that contains it.

Next, run Keytool with the -list
option, against the target keystore
and key alias. The table below lists
the options you should use.

But I am continuously getting this error:

C:\Program
Files\Java\jdk1.6.0_23\bin>keytool
-list keytool error: java.lang.Exception: Keystore file
does not exist: C:\Documents and
Settings\nwashington.keystore

also when I follow the next instruction on the site:

Here's an example of a Keytool command
that generates an MD5 certificate
fingerprint for the key alias_name in
the keystore my-release-key.keystore

Here is what I wrote and my error:

> C:\Program
> Files\Java\jdk1.6.0_23\bin>keytool
> -list -alias androiddebugkey -keystore C:\Documents and
> Settings\nwashington.android\debug.keystore
> -storepass android -keypass android keytool error:
> java.lang.RuntimeException: Usage
> error, and is not a legal command

Am I not entering the correct "my-release-key"?

Can anyone help me get past this issue/what the error means?

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

疾风者 2024-11-06 12:21:46

C:\文档和设置

“和”中的额外空格是问题所在,还是在您创建此问题时插入的?

也许您需要在路径周围加上引号,因为它包含空格?

C:\Documents a nd Settings

Is that extra space in "and" the problem, or did that get inserted while you were creating this question?

Maybe you need quotes around the path because it contains spaces?

像极了他 2024-11-06 12:21:46

最后我解决了问题,正确的工作脚本/命令如下:请注意双引号所在的位置,请按原样使用,因为这是正确的方法。当然,请更改用户名,对于不同版本的 Windows,您必须相应地更改它。如果大家有任何疑问,请随时询问。

C:\Program Files\Java\jdk1.6.0_25\bin>keytool -list -alias androiddebugkey -keys
tore "c:\documents and settings\user\.android\debug.keystore" -storepass android
 -keypass android

Finally i solve the problem and the correct working script / Command is below: Please note the double quotes where they are placed please use as it is as this is the correct method. and off course please change the user name and as for the different versions of windows you people will have to change it accordingly. Please feel free to ask if you people have any questions.

C:\Program Files\Java\jdk1.6.0_25\bin>keytool -list -alias androiddebugkey -keys
tore "c:\documents and settings\user\.android\debug.keystore" -storepass android
 -keypass android
牛↙奶布丁 2024-11-06 12:21:46

我认为你需要在 nwashington 和 .android 之间加一个斜杠

nwashington\.android

I think you need a slash between nwashington and .android

nwashington\.android
歌枕肩 2024-11-06 12:21:46

我想这可能有点太晚了,无法提供帮助。问题可能是路径周围缺少引号 - 在 Windows 中,空格用作参数之间的分隔符,因此,您的路径将被视为“C:\Documents”而不是“C:\Documents and Settings” \nwashington.android\debug.keystore"

这就是为什么你会收到错误,指出“and”不是合法命令,因为它认为前一个参数在遇到空格时就结束了。

I guess this is probably a little too late to be of help. The problem is probably the lack of quotes around the path - in Windows, a space is used as a separator between arguments, and so, your path will be treated as just "C:\Documents" instead of "C:\Documents and Settings\nwashington.android\debug.keystore"

That is why you get the error stating "and" is not a legal command, since it thinks the previous argument ended when it came across the space.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文