的jarsigner“只有一个别名,可以指定” [英] jarsigner “Only one alias can be specified”

查看:3463
本文介绍了的jarsigner“只有一个别名,可以指定”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C:\Program Files\Java\jdk1.7.0_01\bin> jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore Cartoons.keystore Cartoons.apk Cartoons

当我运行此命令我得到这个错误:
只有一个别名可以指定

When I run this command I get this error: Only one alias can be specified

推荐答案

的一种方法是重命名路径​​删除空格,所以:

One way is to rename your path to remove the spaces, so:

C:\\带空格的文件夹\\ 替换C:\\ a_folder_with_spaces \\

或者你的情况

C:\Program_Files\Java\jdk1.7.0_01\bin

由于在评论中指出,另一种方法是指定一个完整路径密钥库和apk文件,并把周围的报价:(虽然我不声称已经测试过这个.. presumably EJP,谁指出了这一点,有的)

jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore "C:/Program Files/..../Cartoons.keystore" "C:/Program Files/...../Cartoons.apk" "C:/Program Files/..../Cartoons"

我preFER解决方案,您只需要使用一个文件夹没有空格,如果你将要经常这样做,因为这些参数是相当mouthfull,但只是一两次,上面是可能更容易。

I prefer the solution where you just use a folder without spaces if you are going to be doing this often, as those arguments are quite a mouthfull, but for just one or two times, the above is probably easier.

这篇关于的jarsigner“只有一个别名,可以指定”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆