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.
It happened to me when I installed a dev build using Instant Run, and uninstalled from Google Play. For some reason the data from Instant Run is still in the device and can't install/uninstall the app again.
Only way to fix it: - disable Instant Run in android studio - install from android studio (it should work only from here) - uninstall app
now it should be clean to install from Google Play or adb.
Try
It works for me. I have remove my app using Titanium Backup. However,I think Titanium backup didn't removed my app totally.
if the APK is built in project with Android.mk file. Maybe it's because of the sign certificate has been changed.
in my problem, I have add LOCAL_CERTIFICATE := platform. as the original apk is signed without this tag.