[Android] adb installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE can try the solution

1. Problem description

Recently, when I packaged and installed the application on the test machine, I encountered such an error:

adb install "D:\Downland\xxx.apk"
Performing Streamed Install
adb: failed to install D:\Downland\xxx.apk:
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package <包名> 
signatures do not match previously installed version; ignoring!]

It is said on the Internet that the signature of the package body has been modified. Although the old package has been uninstalled, there is still information left in the phone. Looking back, it seems that I have indeed done the matter of changing the signature of the package body.

2. Solution

Use the adb command to uninstall the package body corresponding to the package name on the test machine where the installation error occurred. Even if you have uninstalled the package from the mobile phone, replace <package name> with the package name that reported the error :

adb uninstall <包名>

This method works for me. There is also a method on the Internet to enter the /data/system/packages.xml directory to manually delete application information, but root permissions are required. Most mobile phones should not be easy to get root permissions now. If you don't solve the problem for you, find other useful solutions, if you don't mind the trouble, you can share them in the comment area O(∩_∩)O haha~

Guess you like

Origin blog.csdn.net/weixin_44442332/article/details/128456599