简体   繁体   中英

The apk must be signed with the same certificates

When i try to uploading new update of my app, gives me this error "The apk must be signed with the same certificates as the previous version". Procedure: I use export wizard from eclipse, than load old cert file from my folder, i enter password correctly (i test it to enter incorrect, and cant go further) so i know for shure that is correct, and for alias the correct pass to, and save the apk. When i try to upload gives me the error. The package is the same, and oll the stuff. Can anyone tell me where is the problem ?

Most definitely your certificates are different, you may check using the following commands:

unzip -d tmp filename.apk META-INF/CERT.RSA
keytool -printcert -v -file tmp/META-INF/CERT.RSA

where filename.apk is you apk for current and/or previous version.

One of three things could cause this problem:

  1. Using a different private key cert (sounds like you don't think this is your problem)

  2. Not increasing the versionCode and versionName in android manifest

  3. Using a different package name

Hopefully it's not that you lost the cert! Good luck! Someone mentioned that it is possible to sign an old version of your app with multiple certs, and then continue to use the one you still have like this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM