生成没有密钥存储密码的签名 APK

Generating Signed APK with no key store password

我在 7 个月前得到了一个完成了一半的项目,该项目是用 Android Studio 制作的,他们还生成了一个烧焦的 APK 并将其放在 Google Play 商店中。

现在我终于完成了这个项目,我想把它放在 Google Play 商店或更新他们放在 Play Store.

中的项目

他们给了我他们的 Google Play 商店用户名和密码,这样我就可以访问该应用程序,但他们忘记保存 key store password 他们签署 APK 时使用的。

现在我发现自己无法生成签名的 APK 以将其放入 Play 商店,也无法更新现有的应用程序。

如果可能的话,我想更新现有版本,但如果不行,那么在商店中放置一个新应用程序就足够了。

在这种情况下我能做什么或应该做什么?

遗憾的是,由于 Android 要求所有 APK 都使用证书进行数字签名,如果没有密钥库,您将无法发布应用的新版本。

如文档所述:

Loss of the app signing key means that an app cannot be updated, so it is critical for it not to be lost.

您必须创建一个新的密钥库并重新发布该应用程序。另外,不要忘记备份这个新密码,并将密码存储在安全的地方。

看看at the docs。目前有两种方法可以通过密钥库签署和发布您的应用程序。

第一种方法是自己创建和处理密钥库,就像过去那样。

第二种方式是to use Google Play App Signing.

When using Google Play App Signing, you will use two keys: the app signing key and the upload key. Google manages and protects the app signing key for you, and you keep the upload key and use it to sign your apps for upload to the Google Play Store.

这种方法的主要优点是:

When you use Google Play App Signing, if you lose your upload key, or if it is compromised, you can contact Google to revoke your old upload key and generate a new one. Because your app signing key is secured by Google, you can continue to upload new versions of your app as updates to the original app, even if you change upload keys.

由于您将不得不重新发布应用,请考虑改用第二个选项。