0

I guess this could be a common problem for new android developer like myself so I thought to ask it even so it is not a big deal. I would like to have both the current published stable version of an app and the under development version on my device. Yet when I want to install both I get

Re-installation failed due to different application signatures.
You must perform a full uninstall of the application. 

I understand it technically yet I was wondering how I could have an easy way around this so I can have both application on my phone. I could change the package name for the time being but I hope there is an even more straight forward way to get it done.

Thanks

UPDATE

Solution as given by "Marc Bernstein" in the following post - thx Algo for posting the link to it

How to change package name of an Android Application

There is a way to change the package name easily in Eclipse. Right click on your project, scroll down to Android Tools, and then click on Rename Application Package.

Community
  • 1
  • 1
dorjeduck
  • 7,624
  • 11
  • 52
  • 66

2 Answers2

1

Just change package name of your published and development version Application. Changing Package name is really very simple and easy, follow that post

https://stackoverflow.com/a/9171773/185022

Community
  • 1
  • 1
AZ_
  • 21,688
  • 25
  • 143
  • 191
1

The "published" version should be signed using a release keystore.

The "development" version should be signed using a debug keystore.

At installation time, Android will complain that the two applications (having the same package name) have different signatures, and won't install the latest one (Re-installation failed due to different application signatures.).

To fix this (normal) behavior, change the package name of your application while developing it (ex: com.example.myapp-dev).

shkschneider
  • 17,833
  • 13
  • 59
  • 112
  • thx - as mentioned i understand the technical reason behind. changing package name is of course possible, yes as this is just what everybody needs i hope eclipse/android has something more elegant ... – dorjeduck Oct 16 '12 at 09:28