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

时间:2019-05-28 13:28:06

标签: android google-play android-app-bundle

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

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格式)。

我也想使用相同的密钥库来对此应用程序进行签名。无需创建新的密钥库就可以吗?

1 个答案:

答案 0 :(得分:0)

此消息表明您正在使用一个密钥对应用捆绑包进行签名,该密钥被另一个应用用作应用签名密钥。但是,应使用应用上传密钥对应用捆绑包进行签名。不应混为一谈。

这些术语的定义可以在this documentation上找到(请参阅“键,工件和工具的描述” )。

注册“按Play进行应用签名”时,默认设置是Play生成应用签名密钥。如果您想让Play用与您的另一个应用相同的密钥对它生成的APK进行签名,则必须在以下位置选择”(“高级选项”,提供Google Play用于此应用的应用签名密钥” 入学时间:

Play Console screenshot

希望有帮助,