我重置了密钥库密码 [英] I reset my Keystore password
问题描述
我正在为自己的发行版演唱我的apk程序,并且我忘记了keystorepassword,所以我单击了reset.然后我得到了这个错误.
I was in the in the process of singing my apk for my release and i forgot keystorepassword so i clicked reset. then I got this error.
错误:任务':app:packageRelease'的执行失败.
Error:Execution failed for task ':app:packageRelease'.
com.android.ide.common.signing.KeytoolException:无法从商店"C:\ keystore \ keystore.jks"中读取密钥"app name"密钥:密钥库被篡改,或密码不正确
com.android.ide.common.signing.KeytoolException: Failed to read key "app name" key from store "C:\keystore\keystore.jks": Keystore was tampered with, or password was incorrect
解决此问题的最佳方法是什么?
What is my best way to fix this?
推荐答案
如果您忘记了密码,则无法解决此问题.如果您的应用程序尚未发布到Playstore,则可以随意将登录证书更改为新证书.否则,您将无法在playstore上更新您的应用程序,必须取消发布当前应用程序,更改程序包名称并使用其他密钥和程序包发布新程序.因此,请始终尝试备份您的证书文件和密码.
If you forgot your password, there is no way to fix this. If your application is not published to the playstore, you are free to change the sign-in cert to a new one. Otherwise you will not be able to update your app at playstore, you have to unpublish your current app, change the package name and publish a new one with a different key and package. So always try keep a backup of your cert file and password.
这篇关于我重置了密钥库密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!