Reputation: 11
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:
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.
Upvotes: 1
Views: 17509
Reputation: 33
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.
Upvotes: 0
Reputation: 606
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
Upvotes: 3