1
votes
Configuration : Eclipse for Android Developper - jre1.7 - Windows 8 (:s) -

I'm developing a small application that lists all the applications present/ installed on the android device. But I am getting the below error while I'm trying to run the code.

[2013-03-09 16:10:34 - XXX] Installation error: INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID
[2013-03-09 16:10:34 - XXX] Please check logcat output for more details.
[2013-03-09 16:10:34 - XXX] Launch canceled!

Please can any one help me to sort out this error.

1
Are you setting android:sharedUserId in your manifest? If so, why? - CommonsWare
developer.android.com/guide/topics/manifest/… Astor, Thanks for the link ! @CommonsWare : Indeed, I deleted the shared_user_id field in the Android_manifest.xml and the error disappeared. I'm developping this apllication on Windows and not on Linux this time... Thank you very much! - bratiska
@CommonsWare How do I share data between two applications if adding sharedUserId causes INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID? As per the docs sharedUserId is required if two apps want to access each other's data - Tarun
@Tarun: Use a real IPC mechanism (service, content provider, etc.), secured with a signature-level permission. - CommonsWare

1 Answers

5
votes

This may be due to your sharedUserId value being of a non-permitted value. It has to have the same format as the package structure (e.g. com.android).