gpt4 book ai didi

android - 生成没有 key 存储密码的签名 APK

转载 作者:搜寻专家 更新时间:2023-11-01 07:42:48 24 4
gpt4 key购买 nike

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

既然我终于完成了这个项目,我想将它放在 Google Play 商店中或更新他们放在 Play Store 中的项目。

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

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

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

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

最佳答案

不幸的是,由于 Android 要求所有 APK 都使用证书进行数字签名,如果没有 keystore ,您将无法发布应用的新版本

如文档中所述:

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

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

看看at the docs .目前有两种方法可以通过 keystore 签署和发布您的应用。

第一种方法是自己创建和处理 keystore ,就像过去所做的那样。

第二种方式是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.

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

关于android - 生成没有 key 存储密码的签名 APK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52083765/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com