views:

689

answers:

3

I moved my Android project to a laptop and now I get this when I hit Debug. Sounds like this is a bug? This shouldn't happen via Eclipse as far as I know.

Re-installation failed due to different application signatures.

The weirdest thing is this happened after I upgraded sdk/adt and Eclipse to support SDK 2.2 It was working fine earlier, and now it doesn't, so it might be a bug.

+1  A: 

ah i think i found your answer:

http://stackoverflow.com/questions/2458931/why-does-the-app-signature-change-in-android-after-a-classpath-change

its changed if you change the classpath

Roflcoptr
I have not changed the class path at all. Just coped the project over.
Pentium10
+3  A: 

It happens because keystores on your laptop and original pc are different. it's called debug.keystrore and located in %USER_HOME%/.android. TO be more specific it happens because eclipse tries to push apk with reinstall key. So you have two options

  1. Share debug.keystore between various development pc's
  2. Manually uninstall your apk from device ( using adb )
Nikolay Ivanov
I checked this when I arrived home, and it's not a fix, as still happens although I copied the debug keystore from laptop to PC, project was modified last time on laptop.
Pentium10
A: 

After you copy debug.keystore to your PC, you need to rebuild project on PC.

DreamerNS