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.
The question was why he's getting this error. Uninstalling will solve this problem but in my case, while I was installing the compiled version of the apk, the problem raised. I was trying to build an update for my application. So what I did, I built a signed apk and then tried to install the apk and the apk installed perfectly. So, rather removing the old apk, I had to sign the newer update and then installed it.
Two ways that can be works
1: Uninstall app from mobile device manually
2: Open command prompt , trace path of
adb
and execute following commandIn my case there was no version of the App I could find through device manager or Astro.
What I ended up doing was:
1) Download the latest version of the App from the app store
2) The app was still not visible in device manager until I restarted my device.
3) Remove the app from device manager
4) Run my project again
5) Everything works
Hope this helps someone
its occurred if you build your apk from some other PC and update it from different PC.
In my case, I have installed Application from Playstore and after when I am trying to run from Eclipse or Android Studio so it will try to install again on that APK that will not allow.
So First of all you have to Uninstall that Siged APK and after that you have to try.
Thank you.
it means the application which you want to install is already installed. just remove the old one and try again.