2016-11-17 145 views
0

當我運行jarsigner時,它給出時間戳錯誤。離子發佈android apk簽名錯誤

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name 

錯誤:

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 (2044-04-04) or after any future revocation date. 

回答

0

加入 「-tsa http://timestamp.digicert.com」 到commad年底解決了這個問題。

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name -tsa http://timestamp.digicert.com