Android 错误:失败 [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] [英] Android error: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]

查看:55
本文介绍了Android 错误:失败 [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误,但不知道如何解决:
尝试在真实设备上运行 Android 应用程序(在我的情况下为 NEXUS4(rooted))时,我在控制台中收到以下错误:

I'm getting this error and don't know how to fix this:
When trying to run an Android app on a real device (NEXUS4(rooted) in my case) I'm getting the following error in the Console:

包:/data/local/tmp/test.apk失败 [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]

pkg: /data/local/tmp/test.apk Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]

我尝试用谷歌搜索这个错误并得到了一些解决方案:

I've try to google this error and have got some solutions:

  1. 使用android.uid.system"删除源.
    ->错误已修复,但我需要使用 SharedUserID 来获得系统权限,因此我无法接受.
  2. 使用build\target\product\security"中的 platform.pk8 和 platform.x509.pem 对我的应用进行签名.
    ->发生同样的错误.
  3. 将我自己的 UID(下面的 xml(从系统复制))添加到 packages.xml 中并重置.
    ->重置后该应用程序从我的手机中消失了.我不知道为什么我看不到它.

  1. Delete the source with "android.uid.system".
    ->The error fixed but I need to use SharedUserID for system permission so I can't take this.
  2. Use platform.pk8 and platform.x509.pem from "build\target\product\security" to signature my app.
    ->Same error occured.
  3. Add my own UID(the xml below(copied from system)) into packages.xml and reset.
    ->The app disappeard from my phone after reset. I've no idea why I can't see it.

<shared-user name="android.uid.cc" userId="10910">
    <sigs count="1">
        <cert index="2" />
    </sigs>
    <perms>
         ...
    </perms>
</shared-user>

这些解决方案都没有解决问题.
我的安卓版本是 4.4.2.
任何帮助将不胜感激!谢谢.

None of these solutions solved the problem.
My andriod version is 4.4.2.
Any help would be greatly appreciated! Thanks.

推荐答案

在其他答案中 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 同时使用共享用户 ID 他们描述要做的:

In other answer INSTALL_FAILED_SHARED_USER_INCOMPATIBLE while using shared user id they describe to do:

我现在得到了解决方案.我按照以下步骤操作

I got the solution for now .I followed the steps as follows

1) Removed existing application (if it is already installed )
2) Removed share user ID from android manifest
3) Bulid the application.
4) Now enter share user ID again
5) build the application 1 more time 

它有效!!!

感谢 Hemant

这篇关于Android 错误:失败 [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆