Android错误:失败[INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] [英] Android error: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
问题描述
我遇到此错误,不知道如何解决此问题:
尝试在真实设备(本例中为NEXUS4(root))上运行Android应用时,我在控制台中收到以下错误:
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:
pkg:/data/local/tmp/test.apk 失败[INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
pkg: /data/local/tmp/test.apk Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
我尝试通过Google搜索此错误,并找到了一些解决方案:
I've try to google this error and have got some solutions:
- 使用"android.uid.system"删除源.
->错误已修复,但我需要使用SharedUserID以获得系统权限,所以我不能接受此权限.
- 使用构建\目标\产品\安全性"中的platform.pk8和platform.x509.pem签名我的应用.
->发生了相同的错误.
-
将我自己的UID(下面的xml(从系统复制))添加到packages.xml中并进行重置.
->重置后,该应用程序从我的手机中消失了.我不知道为什么我看不到.
- 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. - Use platform.pk8 and platform.x509.pem from "build\target\product\security" to signature my app.
->Same error occured. 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>
这些解决方案都不能解决问题.
我的andriod版本是4.4.2.
任何帮助将不胜感激!谢谢.
None of these solutions solved the problem.
My andriod version is 4.4.2.
Any help would be greatly appreciated! Thanks.
推荐答案
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屋!