I am working on Android application which will share the database. For that, I'm using android:sharedUserId
in both application's Manifest file. When I am trying to run the application after adding that sharedUserId
it shows me following errors in console.
[2013-03-04 19:37:32 - MainActivity] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE [2013-03-04 19:37:32 - MainActivity] Please check logcat output for more details. [2013-03-04 19:37:32 - MainActivity] Launch canceled!
Please help me to resolve this problem.
SharedUserId is used to share the data,processes etc between two or more applications. It is defined in AndroidManifest. xml like, <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="android. uid.
Android assigns a unique user ID (UID) to each Android application and runs it in its own process. Android uses this UID to set up a kernel-level Application Sandbox.
I followed these steps:
This means something about your app was not correctly uninstalled. This steps help to force uninstall from internal commands:
$ adb shell shell@android:/ $ su shell@android:/ # pm list packages | grep <part of package> package:com.android.providers.applications package:com.android.providers.calendar package:com.android.providers.contacts package:com.android.providers.downloads ... shell@android:/ # pm uninstall <package> shell@android:/ # exit shell@android:/ $ exit $
Basically, you log into android shell, become superuser, find problematic packages, and uninstall it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With