安装程序,出现以下错误:

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

这是由于使用了sharedUserId后,使用不同的签名造成的。

    Android中共享UID可以让多个应用使用通过Process ID可以共享内存空间外,

解决办法:

删除: android:sharedUserId="android.uid.system"

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.xxx.vvv"
               android:sharedUserId="android.uid.system">

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐