Java 签署Android apk:INSTALL\u PARSE\u失败\u无\u证书

Java 签署Android apk:INSTALL\u PARSE\u失败\u无\u证书,java,android,processing,Java,Android,Processing,我正在尝试签署一个使用Processing创建的Android apk 以下是我所做的(基于此:): jarsigner验证终止于: s = signature was verified m = entry is listed in manifest k = at least one certificate was found in keystore i = at least one certificate was found in identity scope jar verified.

我正在尝试签署一个使用Processing创建的Android apk

以下是我所做的(基于此:):

jarsigner验证终止于:

s = signature was verified 
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope

jar verified.

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-09-08) or after any future revocation date.

有什么问题吗?与这些警告有关吗?

确保在jarsigner命令中添加以下两个选项:
-sigalg SHA1withRSA-digestalg SHA1
,即使在生成密钥时已指定类似的选项。就像这样:

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myapp-release-key.keystore <PATH>/android/bin/<APPNAME>-release-unsigned.apk myname
jarsigner-verbose-sigalg SHA1withRSA-digestalg SHA1-keystore myapp-release-key.keystore/android/bin/-release-unsigned.apk myname
我花了很长时间才意识到这些不是可选的。。。医生肯定不清楚那件事


希望有帮助。祝你好运。

你是否用
/gradlew build
重建了你的应用程序?
s = signature was verified 
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope

jar verified.

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-09-08) or after any future revocation date.
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myapp-release-key.keystore <PATH>/android/bin/<APPNAME>-release-unsigned.apk myname