Android app signatures don't match

I exported the app to a .apk file, installed it. Then, when I run the application through debugging, it requires reinstalling, since the signatures are different, but I did not change anything in the code, which means that the key (keystore) with which I export the application is most likely to blame. Is it possible to somehow use the same key when debugging? Thank you in advance. (OS X & Eclipse)

P.S. before that, I worked under Windows, such a problem was not observed, I even specially flashed the axis on the phone, you never know.

2 answers

  1. In theory, the debug key.keystore is installed by default in many IDEs (you just need to select it in the settings). I don't know about you, but I have it in AIDE.
  2. If the application is not installed, first delete the old version signed with a different key. When installing the app, Android compares the signatures of all the files in the apk, and if at least one signature is not the same, then the installation is impossible. Only deleting and then installing the apk with the modified version helps by signature.
 1
Author: Helisia, 2013-10-18 16:16:15

When you run an application in the Eclipse IDE in debug mode, it is automatically signed with the debug file by Eclipse itself.keystore. This file is located in the user's home folder. On OS X, this file is located at~/. android / debug.keystore . Note that the android folder has a dot at the beginning of the name, so it is hidden. Take it and sign it with this debug.keystore .

 1
Author: Lucky_spirit, 2013-10-19 14:26:51