android - 如何在 Android Studio 中使用我的上传 key (没有 keystore )签署我的 android 应用程序包?

标签 android android-studio android-app-bundle

因此,我已经完成了将签名应用上传到 Playstore、发布它并选择加入托管 Play 商店签名的整个过程,如下所示:
https://developer.android.com/studio/publish/app-signing#enroll

作为此过程的一部分,我生成了一个 keystore 文件和上传 key (我都有)。

在上述链接的末尾,文章指出:

When you release your app after opting into App signing by Google Play, Google Play generates and manages your app’s signing key for you. Simply sign subsequent updates to your app using your app’s upload key before uploading it to Google Play. to me this means that I will only need the upload key and not the keystore file for future releases.



但是,当我返回 Android Studio 再次构建应用程序包(以便我可以发布另一个版本)时,我选择构建 > 生成签名包/APK,然后出现如下模式:

enter image description here

问题是,如何使用 生成新的签名应用程序包仅限 上传 key 而不是 keystore 文件?

最佳答案

keystore 是私钥的容器。上传 key 在 keystore 中(您的应用签名 key 也是如此)。因此,您需要包含上传 key 的 keystore 来签署您的应用程序。

编辑:您将在此处找到有关不同类型元素的更详细描述:https://support.google.com/googleplay/android-developer/answer/7384423?hl=en-GB

关于android - 如何在 Android Studio 中使用我的上传 key (没有 keystore )签署我的 android 应用程序包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55071944/

相关文章:

Android Studio 和 Gradle,@NotNull 参数的参数 0

java - Android 中的动画启动屏幕,无需制作启动 Activity

android - 加载动态功能时出错。应用程序包安卓

java - 执行 com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable 时发生故障

android - 从非生命周期类的主调度程序切换到 IO 调度程序

java - Android 区域设置在运行时不会(完全)改变

android - 构建工具 21.1.2 – 意外的顶级异常

Android 模拟器连接到 WSL2 中的节点服务器

android - 丢失 Android keystore 密码但应用程序正在使用谷歌签名方法进行签名

Android 为 ListVIews 分离空 View