-1

I unconsciously deleted the apk file from my app and now I wanted to put a new version on the market. The error message is always this:

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):

and then goes a lot of numbers and letters. I know the password that I used to create the firsk apk.

Cœur
  • 37,241
  • 25
  • 195
  • 267
rado
  • 5,720
  • 5
  • 29
  • 51
  • Something in [here](http://developer.android.com/tools/publishing/app-signing.html) might help. – keyser Dec 03 '13 at 23:46

1 Answers1

3

This is probably a duplicate question, but I will still sum this up for you:

When you are creating APK, you use a keystore file containing a certificate to sign it. Then, when you want to issue and update, certificates in old and new version must match, otherwise the system does not allow you to install it.

You most probably created this keystore file when you first generated the APK and then just forgot about it, so it is possible it is still sitting comfortably somewhere on your harddrive. You should look for it first :) (They are quite small, 1-2kB, and every IDE has default path where to save them, so try creating a new one, see where it got saved and look if there isn't another similar file)

If you can't find it, it's time to panic. You are pretty much screwed if you want to issue and update. So, lesson number one:

Always backup your keystore files.

(I still do not understand why this is not shown as some big red flashy box during the APK upload dialog on Google Play :D)

So how to deal with this? You can change your package name, create new keystore, back it up, generate APK, unpublish your old app, publish new APK with same name and info.

Good luck with this. This almost made my hair gray this summer, so hope it won't happen to you :)

daemontus
  • 1,047
  • 10
  • 17
  • Thanks a lot, but I had to take the "time to panic" solution. The problem is the OCD with a trash/unused app now, forever there, showing: "See? Next time backup the keystore" – rado Dec 04 '13 at 00:27
  • Know that feeling. Once I lost keystore because "it must be on TimeMachine by now". Turned out, it wasn't... – daemontus Dec 04 '13 at 00:37