2

I have installed my app in my device.Now due to some reasons I have exported my code and debug.keystore to another machine.When I rebuild the app It is saying "Re-installation failed due to different application signatures." Actully I want to update the app without uninstall. How can I do this?

Thanks,Chaitanya

Chaitu
  • 907
  • 2
  • 13
  • 27
  • You can update after change the version code... – Piyush Aug 16 '13 at 06:20
  • You can replace the `new machine` keystore file with the `old mechine's` keystore file. You can find `keystore` file in your `.android` folder. – Mohsin Naeem Aug 16 '13 at 06:24
  • @user3 `You only need to sign the app with the debug keystore` What?? you need production keystore file to upload on the market. Who said `Home base` tests does not need the debug ketstore? – Mohsin Naeem Aug 16 '13 at 06:26
  • I dont use the debug keystore to test at work, I just connect my device using the ADB and run the application onto the device direct from eclipse! Simple! – Skynet Aug 16 '13 at 06:47
  • in that case your eclipse uses the default debug.keystore present in your home directory. You need to find it in your $HOME/.android and replace it in other machine – Arunkumar Aug 16 '13 at 06:55
  • 1
    @user3 :D When you run application from Eclipse, internally your app gets signed by debug certificate and then get installed on Device... And this is the use of debug certificate :D. Don't confuse your self and SO too – Pankaj Kumar Aug 16 '13 at 06:56
  • @user3 read this http://developer.android.com/tools/publishing/app-signing.html#debugmode and before writing anything on SO please confirm it. – Mohsin Naeem Aug 16 '13 at 06:59
  • Finally I got the solution by removing bin folder and also I have changed the keystore file with older machine.. Thanks for your valuaable replies – Chaitu Aug 16 '13 at 07:09
  • Okay, thank you folks. I got how it functions. However it was working in my case, without my knowing how :D Thanks again! – Skynet Aug 16 '13 at 07:39

2 Answers2

4

You can copy the previous debug.keystore from your old machine and place it in your different machine.

The location of debug.keystore is typically your .android directory present inside home directory.

In Windows, "My Documents" is your home directory and in Linux the default directory to which you new shell opens to is your home directory.

Pankaj Kumar
  • 81,967
  • 29
  • 167
  • 186
Arunkumar
  • 3,812
  • 3
  • 22
  • 30
1

Yes you only need to change the debug keystore of new machine with the one from old machine because when you run the app from compiler its debuged from the debug.keystore from .android folder and then is installed to device/emulator

Muhammad Omer
  • 229
  • 2
  • 11