apk 命令行签名

今天用命令行签名时报了个错:

签名命令:

 

jarsigner -verbose -keystore ~/project/games/sign.keystore -signedjar ./signed.apk ~/project/games/unsign.apk 111111

警告: 

No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2114-05-02) or after any future revocation date.

这可怎么办,WINDOWS,MAC上都试了,不行.以前没有装win7时在xp上签名明明很好用的,可是装完新系统后就是不行,后来仔细想想,原来新系统上使用了64位的jdk,立马用32位的jdk签名测试,OK,一切正常.原来jdk还有这问题呀,没搞明白什么情况!有遇到这个问题的朋友看到我这个帖子算是有福了,我被这个问题搞了一个多月了,今天终于解决了!

总结:

如果你的JDK是64位的,得,别签了,换32位的吧,马上成功.

猜你喜欢

转载自zibingyu.iteye.com/blog/2112223
今日推荐