简体   繁体   English

如果我丢失了密钥库,如何在我的 Android 应用上发布新版本?

[英]How can I make a new release on my android app if i lost my keystore?

I run 2 command我运行 2 个命令

keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks

This command create keystore.jks.此命令创建 keystore.jks。 Export the certificate for that key to PEM format (upload_certificatie.pem).将该密钥的证书导出为 PEM 格式 (upload_certificate.pem)。 I will attach upload_certificatie.pem and reply Googleplay developer support to reset the upload key for my app.我将附上 upload_certificate.pem 并回复 Googleplay 开发人员支持以重置我的应用的上传密钥。

keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 9125 keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 9125

This command create my-upload-key.keystore that will be placed in the ./android/app folder in my react native project.此命令创建 my-upload-key.keystore ,它将放置在我的 react native 项目的 ./android/app 文件夹中。

I lost my old my-upload-key.keystore.我丢失了旧的 my-upload-key.keystore。 Will the above commands help me keep updating my app?上述命令会帮助我不断更新我的应用程序吗? Thank you for your help!谢谢您的帮助!

The answer to your question is no.你的问题的答案是否定的。 When you loose your keystore you cannot make updates to that application.当您松开您的密钥库时,您将无法对该应用程序进行更新。 You will have to make a new application in the play store.您必须在 Play 商店中创建一个新应用程序。

Your only other option is to make a new keyfile and contact google support.您唯一的其他选择是制作一个新的密钥文件并联系谷歌支持。

https://medium.com/@farukcankaya/recover-your-lost-android-keystore-file-633c853bd11f https://medium.com/@farukcankaya/recover-your-lost-android-keystore-file-633c853bd11f

You can create a keyfile with the following command (Keystore and JKS are basically the same):您可以使用以下命令创建密钥文件(Keystore 和 JKS 基本相同):

keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以将我的Android应用程序构建为调试,但使用发布密钥库进行签名 - Can I build my Android app as debug but sign with release keystore 如何在Play商店中上传新版本的应用程序,我的.keystore文件丢失了 - How to upload new version of app in play store and I lost my .keystore file 我丢失了 .keystore 文件? - I lost my .keystore file? 我丢失了密钥库,无法在市场上升级我的应用程序 - I lost my keystore, I can't upgrade my app in the market 在 Google Play 中发布我的应用程序之前,我丢失了我的密钥库 - I lost my keystore before publishing my app in Google Play 生成具有相同应用和包名称的新密钥库,因为我丢失了旧密钥库 - Generating new keystore with same app and package name, because I lost my old one 我如何使我的.apk签名以在android中发布 - How can i make my .apk signed for release in android 我丢失了调试密钥库文件 - i lost my debug Keystore file 在android中为我的应用创建新版本时,是否需要新的密钥库? - Do I need a new keystore when I create a new version for my app in android? "我丢失了我的密钥库密码,我想用相同的密钥库在 Play Store 上更新我的应用程序" - I lost my key store password, I want to update my app on plays store with same keystore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM