首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jarsigner: ANDROIDS缺少签名块

Jarsigner: ANDROIDS缺少签名块
EN

Stack Overflow用户
提问于 2013-10-08 19:01:38
回答 2查看 504关注 0票数 0

我已经签署了apk,但是当我试图使用jarsigner验证时:

代码语言:javascript
复制
jarsigner -verify -verbose -certs sample.signed.apk

但我说错了:

代码语言:javascript
复制
jarsigner: Signature Block missing for ANDROIDS

我不知道该在哪里调查这个问题。谁能给我个提示吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-10-10 20:27:25

原来我在JDK1.6上使用的jarsigner版本。在我把它升级到1.7之后。问题解决了。

票数 0
EN

Stack Overflow用户

发布于 2013-10-08 20:18:52

你是怎么在jar文件上签名的?

在Java文档中,这里看起来像

代码语言:javascript
复制
-verify
   If this appears on the command line, the specified JAR file will 
   be verified,not signed. If the verification is successful,
   "jar verified" will be displayed. If you try to verify an unsigned
   JAR file, or a JAR file signed with an unsupported algorithm 
   (e.g., RSA when you don't have an RSA provider installed), 
   the following is displayed: "jar is unsigned. (signatures  
   missing or not parsable)" It is possible to verify JAR files 
   signed using either jarsigner or the JDK 1.1 javakey tool, or both.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19256080

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档