Possible solution: The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

1. [Problem] This error occurs when Android imports applications

The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
Insert image description here


Many articles on the Internet mention commenting out android:sharedUserId="android.uid.system" in AndroidManifest.xml ,
but we need to use system permissions and naturally don't want to comment out what to do. Here is the solution

2. [Solution]

①Find the path of the application in the system

adb shell pm path "包名" 

Insert image description here

②Remove the apk in the directory

adb shell rm "移除apk的路径"

Insert image description here

③Then restart and run the project again and it will be installed successfully!

Insert image description here

Guess you like

Origin blog.csdn.net/tuhuanxiong/article/details/127889600