I exported the application to an .apk file, installed it. Then, when I launch the application through debugging, it requires reinstallation, since the signatures are different, but I didn’t change anything in the code, which means that the keystore (most likely) is the fault of the keys I use to export the application. Is it possible to somehow use the same key when debugging? Thank you in advance. (OS X & Eclipse)

PS before it worked under Windows, such a problem was not observed, even specially reshaped the axis on the phone, you never know.

  • Do you use your key or use debug.keystore? If you are debugging an application, I would recommend using debug.keystore, and then sign it with your key when releasing. - Helisia 4:05 pm
  • I use my own. That is, I just need to create a key named debug.keystore and use it everywhere? And here's another question: when I changed the key to another, the application stopped installing at all, can it be done somehow? - Vladislav Markushin

2 answers 2

  1. In theory, the debug.keystore key is installed by default in many IDEs (you just need to select it in the settings). I do not know about you, but I have this in AIDE.
  2. If the application is not installed, first remove the old version, signed by another key. When installing the application, Android compares the signatures of all files in apk, and if even one signature is not the same, then installation is impossible. Only removal and the subsequent installation of apk with the changed signature helps.
  • 1. Yes, under Windows it was all good, the application was placed perfectly, but here you are ... 2. I deleted it. I even climbed under the root in the system folders and deleted there. It does not help (I can not guarantee that the problem is not only mine). But still, thanks for the tip! - Vladislav Markushin
  • Regarding the second point: what error produces during installation? - Helisia
  • "A package with this name is already installed and has a conflicting signature." (By the way, now I tried to reinstall it in a new way, such an error didn’t arise, however, I had to delete it). And here's what is strange: when debugging, the menu buttons and options do not work, it really scares me. Whether it's makosi, or in the unfinished firmware of the phone. - Vladislav Markushin
  • Specify the firmware of the phone, please - Helisia
  • W3bsit3-dns.com/forum/index.php?showtopic=491974 But now there is one of its very first versions. And one more thing: at the moment I am debugging via wi-fi, before that it was USB. - Vladislav Markushin

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