应用上传失败,因为密钥已在其他应用中使用

App upload failed because the key was used in other apps

我正在尝试将应用上传到 Google 以 app bundle 格式播放,但失败并出现以下错误 -

You uploaded an APK or Android App Bundle that is signed with a key that is also used to sign APKs that are delivered to users. Because you are enrolled in App Signing by Google Play, you should sign your APK or Android App Bundle with a new key before you upload.

我已经在市场上发布了一些使用相同密钥库签名的应用程序(但采用 apk 格式)。

我也想使用同一个密钥库来签署这个应用程序。这是否可以不创建新的密钥库?

此消息表明您正在使用另一个应用用作 应用签名密钥 的密钥对您的 App Bundle 进行签名。然而,App Bundle 应该使用 app upload key 进行签名。两者不能混用。

这些术语的定义可以在 this documentation 上找到(参见 "Description of keys, artifacts and tools")。

当您注册 Play 应用签名时,Play 会默认生成应用签名密钥。如果您希望 Play 使用与您的另一个应用相同的密钥对它生成的 APK 进行签名,则必须 select "(高级选项)提供 Google Play 的应用签名密钥在注册时用于此应用程序

希望对您有所帮助,