17

I am having a problem with uninstalling apps on Android 5.0 (Nexus 5). I am developing an Android app, so I debug/run the app directly on my device. For production, I exported the same app with my keystore, uninstalled the debug APK that I ran earlier, tried to install the signed APK, and I got this error:

An existing package by the same name with a conflicting signature is already installed.

Is it because the bytecodes are still in the ART runtime? Anyone has any idea how to solve this?

0

2 Answers 2

30

When uninstalling an app using the usual pre-Lollipop approach (e.g. dragging to the "trash bin" icon, or from App info > Uninstall), it's only uninstalled on the current user. This can be confirmed by the app showing "Not installed" on the stock app manager. Android will detect that the app is still there, preventing the user to install the app with the same package name.

The root cause is Guest account (if it's activated), that when an app is installed, it's automatically installed on all users. So, it is also required to uninstall the app from there, which can be troublesome in daily usage.

There are some approaches to uninstall the app completely (ordered by practicality):

  1. (from the owner account) Go to Settings > Apps, find and open the app info. Then, open the overflow menu (3 vertical dots), and choose Uninstall for all users.
  2. (from the guest account) Deactivate the guest account if it is not needed (for more info: Removing the default guest user account from Android Lollipop)
  3. (from PC) Enter adb uninstall <package> on the command prompt/shell. This is the same as "uninstall for all users"
  4. (from guest/other accounts) Find the app and uninstall it normally.
    • In case it can't be uninstalled, try removing the account and creating a new one, then try finding the app and uninstall it again.
2
  • 2
    How about apps that have Uninstall button disabled? Like system apps that are duplicated by apps from gapps packages? Commented May 27, 2015 at 9:18
  • 1
    @RobertKoritnik sorry, that's outside of the scope of this answer since uninstalling system apps needs root access, such as this question.
    – Andrew T.
    Commented May 6, 2016 at 10:46
0

I managed to uninstall this way:

  • I first attempted to uninstall the normal way (using Settings->Applications->app-name->uninstall), which kind of removes the ability to run it, but clearly does not uninstall.
  • I ran Google Play and looked up the app.
  • I saw that the UnInstall button was inactive, but the Install was active, so I tapped Install. Now I'm able to run the app.
  • After that, the UnInstall button in Google Play is active.
  • Tap the UnInstall to remove the app.

Voila, it's gone!

3
  • I guess the uninstall button wont be visible unless the app is updated to the current version in playstore. If you din't have an updated version of the app that you are trying to uninstall this way it will show you two options i.e. Open Or Update. You have to update the app first and then Uninstall it which is an extra step that the user has to take but thats useless since the user want to get rid of the app.
    – Lucky
    Commented Jul 29, 2015 at 18:14
  • @Firelord: 1) Yes, I mean all the above was run within the Google Play Store app on your mobile device. The app allows uninstalling of apps you have already installed (but it won't uninstall apps that were pre-loaded onto your device, sigh).
    – SMBiggs
    Commented Aug 3, 2015 at 18:41
  • @Firelord 2) Clarification: in step 3, I use the Google Play Store app to re-install the app, allowing me to run it. I return to the Google Play Store (and again look up the app in question) for steps 4 and 5. Hope that clears things up.
    – SMBiggs
    Commented Aug 3, 2015 at 18:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .