问题描述
我收到这个错误,不知道如何解决这个问题:
在尝试在实体设备上运行Android应用程序(在我的情况下nexus4(rooted))时,我会在控制台中获得以下错误:
pkg:/data/local/tmp/test.apk 失败[install_failed_shared_user_incompatible]
我试图谷歌这个错误并有一些解决方案:
- 用"android.uid.system"删除源.
- >固定错误,但我需要使用SharedUserID进行系统权限,以便我无法接受这个.
- 使用platform.pk8和platform.x509.pem从"build \ target \ product \ security"签名我的应用.
- >发生了相同的错误.
-
将我自己的uid(下面的XML(从系统复制))添加到packages.xml和重置.
- >重置后,应用程序会在手机中消失.我不知道为什么我看不到它.<shared-user name="android.uid.cc" userId="10910"> <sigs count="1"> <cert index="2" /> </sigs> <perms> ... </perms> </shared-user>
这些解决方案都没有解决问题.
我的Andriod版本是4.4.2.
任何帮助将不胜感激!谢谢.
推荐答案
install_failed_shared_user_incompatible在使用时共享用户ID 他们描述了:
我现在得到了解决方案.我按照以下步骤
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
和它有效!!!
感谢血糖其他推荐答案
我也遇到了此错误,运行应用程序显示对话框时,大多数消息都在说
install_failed_shared_user_compatible
除了上面提到的此错误,我的logcat中的另一个错误是:
Error using StatusBarManagerService - java.lang.SecurityException on android.permission.STATUS_BAR
最后,添加平台调试键固定它.
问题描述
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 Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
I've try to google this error and have got some solutions:
- 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>
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
and It works !!!
Thanks to Hemant
其他推荐答案
I met this error too, when run application show a dialog, most message is saying
INSTALL_FAILED_SHARED_USER_COMPATIBLE
Except this error above you mentioned, and another error in my logcat is:
Error using StatusBarManagerService - java.lang.SecurityException on android.permission.STATUS_BAR
Lastly, add platform debug key fixed it.