INSTALL_FAILED_UPDATE_INCOMPATIBLE when I try to i

2019-01-05 09:02发布

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.

22条回答
做个烂人
2楼-- · 2019-01-05 09:35

I got the same issue and did following to fix it.

  1. Settings > Storage > Clear Cached Data
  2. Settings > Apps > Uninstall the apps showing there. I had uninstalled my apps but it was showing there.
  3. Restart and then everything went fine.
查看更多
不美不萌又怎样
3楼-- · 2019-01-05 09:36

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.

查看更多
我命由我不由天
4楼-- · 2019-01-05 09:37

Uninstalling the application would be enough to avoid this problem.

INSTALL_FAILED_UPDATE_INCOMPATIBLE

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:

"Not installed for this user" enter image description here

We have to uninstall manually for all users!, then we can install our compiled application with no problems.

enter image description here

Another options:

  • Remove the old application and install again.
  • Use Android Debug Bridge command:

    adb uninstall [PACKAGE NAME]

查看更多
你好瞎i
5楼-- · 2019-01-05 09:37

Go to Setting/Apps/ Search for your app and unistall...

It´s worked for me

查看更多
Viruses.
6楼-- · 2019-01-05 09:37
  1. Go to Setting/Apps/ Search for your app and uninstall...
  2. open command prompt and "adb uninstall "

It´s worked for me

查看更多
The star\"
7楼-- · 2019-01-05 09:39

If your Manifest file has this line -

android:sharedUserId="android.uid.system"

is causing this error! just comment this line and you are good to go!!

查看更多
登录 后发表回答