【问题标题】:Android sign akp for Google Play java 6 switch on Windows适用于 Windows 上的 Google Play java 6 的 Android 签名 apk
【发布时间】:2016-03-07 14:55:53
【问题描述】:

签署 akp 时出现警告:

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 (2141-02-03) or after any future revocation date.

这里:“Package file was not signed correctly” error — detect whether or not it will happen with Google Play app apk 我读过它可能会导致 Google Play 出现问题,据我所知,建议是使用 java 6 签名,如何临时切换的代码是为 OSX 提供的。我使用的是 Windows 7,我已经安装了 java 6,但是当我从 6 运行 jarsigner 时出现错误:

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.7', but '1.6' is required.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.

如何将 Windows 7 临时切换到 java 6?

【问题讨论】:

    标签: java android google-play apk sign


    【解决方案1】:

    我取消了 Java 7/6,安装了 6 并使用 java 6 中的 jarsinger 进行签名,然后甚至使用 java 6 中的 keytool 来创建新的密钥库:

    java 6 jarsigner 不会对它生成的 akp 发出警告,但是,当我尝试使用 java 8 中的 jarsigner 验证 apk 时,会生成相同的警告,所以重点不是 java 6 使得 singed apk 优于 new 7/ 8,但新的 7/8 提供了有关结果的更多详细信息。

    希望我由 Android Studio 1.5 生成的密钥可以适用于 Google Play。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-08
      • 2015-07-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多