在我们最初的Android应用程序发布时,我们使用openssl生成了一个.p12密钥库文件,自从我们使用此文件和pw签署我们的Android应用程序之后,我们就将其提交到Google Play商店 . 我们构建我们的apk:

java adt.jar -storetype pkcs12 -keystore {our-p12} -storepass {our-pw} ....

我们现在正在迁移到科尔多瓦 .

我们按照Signing apk with .p12中的说明将p12导入到新的密钥库文件中 . 我们使用以下命令将p12导入空密钥库文件:

keytool -importkeystore -srckeystore {our-p12} -destkeystore viacordova.keystore -srcstoretype pkcs12

但是,当我们尝试将我们的Cordova应用程序上传到Google时,我们会收到以下错误:

Upload failed

You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s):

[ SHA1: {list of bytes} ]

and the certificate(s) used to sign the APK you uploaded have fingerprint(s):

[ SHA1: {different list of bytes} ]