Search code examples
androidapkandroid-keystore

I reset my Keystore password


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.

Error:Execution failed for task ':app:packageRelease'.

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?


Solution

  • 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.