“打包文件未正确签名"错误-检测是否会在Google Play应用APK中发生 [英] "Package file was not signed correctly" error -- detect whether or not it will happen with Google Play app apk

查看:168
本文介绍了“打包文件未正确签名"错误-检测是否会在Google Play应用APK中发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下问题中描述的错误的问题:

I am having problems with the error described in the questions below:

已发布的Android apk给出错误包装文件未正确签名"
一些(但不是全部)用户收到打包文件未正确签名".从Google Play下载我的应用程序时

具体来说,当某些用户尝试下载我的Google Play应用时,他们得到了错误,而其他用户则没有.

Specifically, when some users try to download my Google Play app, they get the error, others don't.

我的问题是:如何在提交之前检测问题是否会发生?

My question is: how to detect before submission whether the problem is going to occur or not?

对于我跑步时的价值

jarsigner -verify -verbose -certs myapk.apk

我看到类似以下的内容:

I see something like the following:

86226 Sun Nov 09 10:34:54 EET 2014 META-INF/MANIFEST.MF X.509, //[省略了个人资料] [证书的有效日期为2014年8月20日8:04 到1/5/42 7:04 AM] [CertPath未验证:路径未与 任何信任锚]//上面的几百个条目, 然后:通过jar验证.

86226 Sun Nov 09 10:34:54 EET 2014 META-INF/MANIFEST.MF X.509, //[personal stuff omitted] [certificate is valid from 8/20/14 8:04 AM to 1/5/42 7:04 AM] [CertPath not validated: Path does not chain with any of the trust anchors] // several hundred entries like the above, and then: jar verified.

警告:此jar包含其证书链不存在的条目 已验证.此罐包含不包含签名的签名 时间戳记.没有时间戳,用户可能无法验证 签名者证书的有效日期(2042-01-05)之后的jar或 在任何将来的撤销日期之后.

Warning: This jar contains entries whose certificate chain is not validated. This jar contains signatures that does not include a timestamp. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2042-01-05) or after any future revocation date.

推荐答案

实际上,这是一个常见问题,我想您必须使用Java 7或更高版本.

Actually this is a common problem and i guess you must be using Java 7 or later.

解决方案

运行jarsigner:

Run jarsigner:

jarsigner -verbose -verify -keystore ${KEYSTORE_PATH} ${YOU_JAR_FILE}

看看 此处

这篇关于“打包文件未正确签名"错误-检测是否会在Google Play应用APK中发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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