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 try
In my case, I had two build variants (one specific for a device, and one general).
I was running the device-specific build on an emulator when this error showed up.
I was using Emulator and the solution for me was to select the "AVD Manager" and Wipe all data from my Emulator device. After that application was installed.
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
I followed these steps:
Simply delete the existing application from mobile and reinstall using run.
The solution for me was to select the "Build > Clean Project" menu option. It took a long time but the application deployed once it was complete.