可能解决方法:The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

1、【问题】 Android导入应用时报此错误

The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
在这里插入图片描述

看网上很多文章都提到将AndroidManifest.xml中的
android:sharedUserId=“android.uid.system” 注释掉,
但是我们又需要使用到系统权限 自然也不想注释掉怎么办 ,下面就是解决方法

2、【解决方法】

①找到系统中该应用所在路径

adb shell pm path "包名" 

在这里插入图片描述

②再移除掉目录下的apk

adb shell rm "移除apk的路径"

在这里插入图片描述

③接着重启 再运行一次项目就可以成功装进去啦!

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/tuhuanxiong/article/details/127889600