I've compiled Trebuchet launcher from CyanogenMod 9, and trying to install it with adb:
$ adb install out/target/product/generic/system/app/Trebuchet.apk
3986 KB/s (7870141 bytes in 1.928s)
pkg: /data/local/tmp/Trebuchet.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
I tried on Nexus S with CM9 and Galaxy Nexus with stock JB. Why I'm getting this error?
EDIT: In my case I've tried to reinstall system package with package manager. That's not supported, so I've got this error. Source of the error may differ in your case.
I got the same issue and did following to fix it.
For MIUI users, apart for usual USB debugging option be sure to enable these settings as well:
Install via USB
USB debugging(Security settings)
then accept the prompt when you try installing app again.
Uninstalling the application would be enough to avoid this problem.
but sometimes even uninstalling the message is raised again, it occurs in Android OS 5.0 +, so this is the solution:
Go to
Settings
>Apps
and you will find your app with the message:We have to uninstall manually for all users!, then we can install our compiled application with no problems.
Another options:
Use Android Debug Bridge command:
Go to Setting/Apps/ Search for your app and unistall...
It´s worked for me
It´s worked for me
If your Manifest file has this line -
is causing this error! just comment this line and you are good to go!!