Discussion:
INSTALL_FAILED_UPDATE_INCOMPATIBLE
Cheryl Sedota
2008-11-03 16:26:15 UTC
Permalink
I am getting this error on the G1 (so the advice to "-wipe-data" is
not possible) and need help getting around it.

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Package com.frogdesign.test1 signatures do not match the previously
installed version; ignoring
Package couldn't be installed in /data/app/com.frogdesign.test1.apk

I have a few apps with a 'shared user id' - I installed two apps that
use the same shared user id and the two apps were built on different
machines so I realize that is the source of the problem.

However, I am stuck! I uninstalled (via "adb uninstall <package
name>") all of my apps and tried to re-install a new build (suite of
apps) which was completely built on the same machine. It appears that
the system is keeping around some old data (maybe in the cache?) for
the apps that I uninstalled because I get that error when I try to
install the fresh apps.

If anyone can please help I would really appreciate it, it's
completely blocking us from testing our apps on the G1.

Thanks,
Cheryl
However, now I can't install from Eclipse any more. Have to do a wipe
again. Is it possible to have two different emulator instances, one
for testing, one for development?
"To run multiple emulator instances and let each maintain user data
across sessions, start the instances with the -data option (see Startup
Options) and supply the path to a user-data file. "
http://code.google.com/android/reference/emulator.html
--
Mark Murphy (a Commons Guy)http://commonsware.com
Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml
Michael
2008-11-03 16:32:31 UTC
Permalink
Did you sign different versions of your app with different keys? I
had this error message when I changed from the debug key to a real
key, and what I had to do was reinstall the old version, uninstall it
fully, then install my new version.
Cheryl Sedota
2008-11-03 16:57:09 UTC
Permalink
What do you mean by "uninstall it fully"? I did an "adb uninstall
<package name>" but that does not appear to "fully" uninstall it :)
This is on the G1 so I have no access to the /system or /data folders.

Thanks,
Cheryl
Did you sign different versions of your app with different keys?  I
had this error message when I changed from the debug key to a real
key, and what I had to do was reinstall the old version, uninstall it
fully, then install my new version.
Urakagi
2008-12-06 06:14:26 UTC
Permalink
I'm also stuck at here, this is really terrible...
The final way is factory reset, buy I honestly don't want to do it...
Post by Cheryl Sedota
What do you mean by "uninstall it fully"? I did an "adb uninstall
<package name>" but that does not appear to "fully" uninstall it :)
This is on the G1 so I have no access to the /system or /data folders.
Thanks,
Cheryl
Post by Michael
Did you sign different versions of your app with different keys? I
had this error message when I changed from the debug key to a real
key, and what I had to do was reinstall the old version, uninstall it
fully, then install my new version.
Tertium Organum
2008-12-12 08:58:44 UTC
Permalink
Maybe obtaining root access will solve problem with /data /system
access.
But when I rm my app (after cd data/app) -
INSTALL_FAILED_UPDATE_INCOMPATIBLE still exists.
So maybe is worth to buy developer phone (http://code.google.com/
android/dev-devices.html)
b***@gmail.com
2009-02-01 06:22:43 UTC
Permalink
I just figured out how to fix this, but it requires root access.

Pull /data/system/packages.xml
Find the entry for your package and comment it out.
shell back in and chmod packages.xml to be world-writeable
Push packages.xml back into the phone.
Restart the phone.

You can then install the app with the different signature.
vel
2009-02-20 06:57:42 UTC
Permalink
Is there a simple way to do it?
I installed an apk using OIFile Manager
Later i uninstalled, using setting/manage application
Now i am not able to install the application.
Even though i uninstalled the apllication i can still find the entry
in package.xml
Post by b***@gmail.com
I just figured out how to fix this, but it requires root access.
Pull /data/system/packages.xml
Find the entry for your package and comment it out.
shell back in and chmod packages.xml to be world-writeable
Push packages.xml back into the phone.
Restart the phone.
You can then install the app with the different signature.
sri
2009-04-03 05:04:24 UTC
Permalink
Hi , I was facing the same problem, there is a way to uninstall from
"settings" in the application menu settings->applications->mange
applications-> select the application->select "unistall". This seems
to delete everything and allows to install release version
Thanks
Srilaxmi

P.S. I will really appreciate it if there is someone out there who
will test my app on therir G1
The problem seems to be that the default way of uninstalling an
application leaves the reference to the old key behind in the
packages.xml file.
I had a problem with this step: "shell back in and chmod packages.xml
to be world-writeable". I got permission denied (maybe it could be
worked around but I know too little).
1. install the application signed with the debug key again (e.g. from
Eclipse)
2. do an adb uninstall (with no flags this removes all traces from
packages.xml)
3. and now install the one signed with a different key
Peter
Post by vel
Is there a simple way to do it?
I installed an apk using OIFile Manager
Later i uninstalled, using setting/manage application
Now i am not able to install the application.
Even though i uninstalled the apllication i can still find the entry
in package.xml
Post by b***@gmail.com
I just figured out how to fix this, but it requires root access.
Pull /data/system/packages.xml
Find the entry for your package and comment it out.
shell back in and chmod packages.xml to be world-writeable
Push packages.xml back into the phone.
Restart the phone.
You can then install the app with the different signature.- Hide quoted text -
- Show quoted text -
sri
2009-04-03 05:29:08 UTC
Permalink
I found that the only thing that worked for me was to go on the device
and select settings->applications->manage applications->your
application name->uninstall

->adb uninstall failed for me :(

On a side note please can someone out there test my application on a
device. It (the signed apk) works perfectly on the emulator, but seems
to be crashing from the market page.
Tested extensively with the monkey excerciser too. I don't have a
device currently.
Thanks
The problem seems to be that the default way of uninstalling an
application leaves the reference to the old key behind in the
packages.xml file.
I had a problem with this step: "shell back in and chmod packages.xml
to be world-writeable". I got permission denied (maybe it could be
worked around but I know too little).
1. install the application signed with the debug key again (e.g. from
Eclipse)
2. do an adb uninstall (with no flags this removes all traces from
packages.xml)
3. and now install the one signed with a different key
Peter
Loading...